summaryrefslogtreecommitdiff
path: root/json-glib/json-array.c
diff options
context:
space:
mode:
Diffstat (limited to 'json-glib/json-array.c')
-rw-r--r--json-glib/json-array.c2
1 files changed, 1 insertions, 1 deletions
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);