summaryrefslogtreecommitdiff
path: root/json-glib/json-path.c
diff options
context:
space:
mode:
authorEmmanuele Bassi <ebassi@gnome.org>2013-01-11 17:47:13 +0000
committerEmmanuele Bassi <ebassi@gnome.org>2013-01-11 17:47:16 +0000
commita9bc17dc04b425888b40b5ecef6baefcf369ec84 (patch)
tree51b43382e9f368961b96b0d296cf9b560c939744 /json-glib/json-path.c
parente348b1fa88823ddb18fb8d2a2d1acea94c9f9448 (diff)
downloadjson-glib-a9bc17dc04b425888b40b5ecef6baefcf369ec84.tar.gz
path: Fix get all object members with wildcard
Similar to the fix that went in commit path e348b1fa, we need to fix getting all the members of an object by using the wildcard notation.
Diffstat (limited to 'json-glib/json-path.c')
-rw-r--r--json-glib/json-path.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/json-glib/json-path.c b/json-glib/json-path.c
index fc8d52c..4fb61bc 100644
--- a/json-glib/json-path.c
+++ b/json-glib/json-path.c
@@ -853,7 +853,7 @@ walk_path_node (GList *path,
else
{
JSON_NOTE (PATH, "glob match member '%s'", (char *) l->data);
- json_array_add_element (results, json_node_copy (root));
+ json_array_add_element (results, json_node_copy (member));
}
}
g_list_free (members);