summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Jonathan Beck2009-10-10 22:33:31 +0200
committerGravatar Jonathan Beck2009-10-10 22:33:31 +0200
commit97f7caeecdfe233c30cec02ac1c4b5634a4f2bce (patch)
treec0ac7fcc65ebc1fae512a964885fe2813ac82c8b
parentbc08d5f530b3b4a73b31464ee498d610ecb2ea13 (diff)
downloadlibplist-97f7caeecdfe233c30cec02ac1c4b5634a4f2bce.tar.gz
libplist-97f7caeecdfe233c30cec02ac1c4b5634a4f2bce.tar.bz2
Fix dict iteration.
-rw-r--r--src/plist.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plist.c b/src/plist.c
index a9a6173..116c7ec 100644
--- a/src/plist.c
+++ b/src/plist.c
@@ -278,7 +278,7 @@ void plist_dict_next_item(plist_t node, plist_dict_iter iter, char **key, plist_
}
if (val) {
- val = (plist_t) g_node_nth_child(node, 2 * (*iter) + 1);
+ *val = (plist_t) g_node_nth_child(node, 2 * (*iter) + 1);
}
*iter += 2;