diff options
author | Emmanuele Bassi <ebassi@linux.intel.com> | 2010-01-10 09:59:14 +0000 |
---|---|---|
committer | Emmanuele Bassi <ebassi@linux.intel.com> | 2010-01-10 09:59:14 +0000 |
commit | c09c2dc1c54c83fea4ef93486081fe3fab35452c (patch) | |
tree | b72c69b339e3ac9bc8ad1bc7372ea026f28f9585 /json-glib/json-object.c | |
parent | cdffa0eacb52479e04460d8436a08ccecce91edf (diff) | |
download | json-glib-c09c2dc1c54c83fea4ef93486081fe3fab35452c.tar.gz |
Initialize every member of JsonObject on construction
We create JsonObject structures using g_slice_new(), so we need to
initialize every member of the structure ourselves.
Diffstat (limited to 'json-glib/json-object.c')
-rw-r--r-- | json-glib/json-object.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/json-glib/json-object.c b/json-glib/json-object.c index b81254e..1490d7b 100644 --- a/json-glib/json-object.c +++ b/json-glib/json-object.c @@ -78,6 +78,7 @@ json_object_new (void) object->members = g_hash_table_new_full (g_str_hash, g_str_equal, g_free, (GDestroyNotify) json_node_free); + object->members_ordered = NULL; return object; } |