From 228886732763fd06ecfabb17d1a2f947ab303a2a Mon Sep 17 00:00:00 2001 From: Don Slutz Date: Fri, 5 Jul 2013 10:58:48 -0400 Subject: [PATCH] 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 Acked-By: Alex Bligh --- v1 -> v2 Adjust commit message as Konrad Rzeszutek Wilk sugested. Add Alex Bligh's Acked-By tools/libxl/libxl_json.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/tools/libxl/libxl_json.c b/tools/libxl/libxl_json.c index 72b52e8..0810630 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); -- 1.7.1