[libvirt] [PATCH 07/10] virJSONValueToString: bail out early on error
Daniel P. Berrangé
berrange at redhat.com
Wed Apr 3 08:45:34 UTC 2019
On Wed, Apr 03, 2019 at 07:40:22AM +0200, Ján Tomko wrote:
> 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 at redhat.com>
> ---
> src/util/virjson.c | 8 +++-----
> 1 file changed, 3 insertions(+), 5 deletions(-)
Reviewed-by: Daniel P. Berrangé <berrange at redhat.com>
Regards,
Daniel
--
|: https://berrange.com -o- https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org -o- https://fstop138.berrange.com :|
|: https://entangle-photo.org -o- https://www.instagram.com/dberrange :|
More information about the libvir-list
mailing list