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 10:49:26 +0000 |
| commit | 1ce1d549477b79e7d94fb891f323afbdb8a8d4ce (patch) | |
| tree | 646ef1cd3811e353a862d60b6fb15f95562efaf3 /json-glib/json-object.c | |
| parent | dae32677d140a3ba6a15e1198b53ea0b3e1716b0 (diff) | |
| download | json-glib-1ce1d549477b79e7d94fb891f323afbdb8a8d4ce.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.
(cherry picked from commit c09c2dc1c54c83fea4ef93486081fe3fab35452c)
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; } |
