]> xenbits.xensource.com Git - libvirt.git/commit
virJSONValueToString: bail out early on error
authorJán Tomko <jtomko@redhat.com>
Tue, 2 Apr 2019 21:59:38 +0000 (23:59 +0200)
committerJán Tomko <jtomko@redhat.com>
Wed, 3 Apr 2019 11:30:47 +0000 (13:30 +0200)
commitf01a34f04c70cbe9aa6d2ed5577ba70d2ec27d2a
tree9aa791bebd9737619fe33d76435c33d6a3eab914
parentf13bf4518be5674c49be838fc16683aa7ad89207
virJSONValueToString: bail out early on error

Now that we do not need to cater to YAJL 1, move the check for the
return value of yajl_gen_alloc earlier, so that we can assume it
was successful in later code.

Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
src/util/virjson.c