diff options
author | Ted Gould <ted@gould.cx> | 2010-06-28 22:12:07 -0500 |
---|---|---|
committer | Ted Gould <ted@gould.cx> | 2010-06-28 22:12:07 -0500 |
commit | 65cfbcd1339473de0540ef9037af336ce893d008 (patch) | |
tree | 0cd82076626a6b06806743907cc10f757843ee08 /tests | |
parent | 35589de9fe87c06f07772d9ffae74c2b8ca9141e (diff) | |
download | libdbusmenu-65cfbcd1339473de0540ef9037af336ce893d008.tar.gz libdbusmenu-65cfbcd1339473de0540ef9037af336ce893d008.tar.bz2 libdbusmenu-65cfbcd1339473de0540ef9037af336ce893d008.zip |
Look at all the values instead of just the first.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/json-loader.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/json-loader.c b/tests/json-loader.c index 2f27bff..97f1c13 100644 --- a/tests/json-loader.c +++ b/tests/json-loader.c @@ -31,7 +31,7 @@ node2value (JsonNode * node) int i; for (i = 0; i < json_array_get_length(array); i++) { - const gchar * str = json_node_get_string(first); + const gchar * str = json_node_get_string(json_array_get_element(array, i)); gchar * dupstr = g_strdup(str); g_array_append_val(garray, dupstr); } |