]> xenbits.xensource.com Git - xen.git/commitdiff
libxl_json: Fix backport of JSON_BOOL to 4.2.2
authorDon Slutz <dslutz@verizon.com>
Fri, 5 Jul 2013 14:58:48 +0000 (10:58 -0400)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Fri, 12 Jul 2013 13:06:13 +0000 (14:06 +0100)
git commit 2b3072ed0cbeed8c0385f20e92ba0f1201db8a17 ('libxl_json:
 Replace JSON_TRUE/FALSE by JSON_BOOL.')  has the setting of obj->u.b

git commit 6a2aca9fdef0499e613715baf107f2296b9007cf ('libxl_json:
 Replace JSON_TRUE/FALSE by JSON_BOOL.')  does not.

This shows up by vnc-port and vnc-listen are missing in xenstore when
they should not be.

Signed-off-by: Don Slutz <dslutz@verizon.com>
Acked-By: Alex Bligh <alex@alex.org.uk>
tools/libxl/libxl_json.c

index 72b52e8105a2cfb6f3c1d081fa568e1eacc10ad6..08106306a16bd0bd13c6d49cbc30d414e9bf3e0d 100644 (file)
@@ -474,6 +474,7 @@ static int json_callback_boolean(void *opaque, int boolean)
 
     if ((obj = libxl__json_object_alloc(ctx->gc, JSON_BOOL)) == NULL)
         return 0;
+    obj->u.b = boolean;
 
     if (libxl__json_object_append_to(ctx->gc, obj, ctx->current) == -1) {
         libxl__json_object_free(ctx->gc, obj);