aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDon Slutz <dslutz@verizon.com>2013-07-05 10:58:48 -0400
committerIan Jackson <Ian.Jackson@eu.citrix.com>2013-07-12 14:06:13 +0100
commit253d1cb0e217ddf60f9a9ef3dca541368a86b93e (patch)
treedf304308af9503d8ca2f05debfe91a5c904f2616
parent30c091a4b9911eb608b2de604652d02aeaadb806 (diff)
downloadxen-253d1cb0e217ddf60f9a9ef3dca541368a86b93e.tar.gz
xen-253d1cb0e217ddf60f9a9ef3dca541368a86b93e.tar.bz2
xen-253d1cb0e217ddf60f9a9ef3dca541368a86b93e.zip
libxl_json: Fix backport of JSON_BOOL to 4.2.2
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>
-rw-r--r--tools/libxl/libxl_json.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/libxl/libxl_json.c b/tools/libxl/libxl_json.c
index 72b52e8105..08106306a1 100644
--- a/tools/libxl/libxl_json.c
+++ b/tools/libxl/libxl_json.c
@@ -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);