From f7eb50b5b03ee5870e476135bd989cb49d8d44c2 Mon Sep 17 00:00:00 2001 From: Emmanuele Bassi Date: Tue, 18 Aug 2015 14:04:05 +0100 Subject: array: Do not create a null node for empty strings The two are fairly different, and JsonObject does not behave this way. https://bugzilla.gnome.org/show_bug.cgi?id=730803 --- json-glib/json-array.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'json-glib/json-array.c') diff --git a/json-glib/json-array.c b/json-glib/json-array.c index c747989..ebc6d58 100644 --- a/json-glib/json-array.c +++ b/json-glib/json-array.c @@ -551,7 +551,7 @@ json_array_add_string_element (JsonArray *array, node = json_node_alloc (); - if (value != NULL && *value != '\0') + if (value != NULL) json_node_init_string (node, value); else json_node_init_null (node); -- cgit v1.2.1