Re: [libvirt] [PATCH 07/10] virJSONValueToString: bail out early on error

2019-04-03 Thread Daniel P . Berrangé
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 > --- > src/util/virjson.c | 8 +++-

[libvirt] [PATCH 07/10] virJSONValueToString: bail out early on error

2019-04-02 Thread Ján Tomko
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 --- src/util/virjson.c | 8 +++- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git