summaryrefslogtreecommitdiffstats
path: root/src/Dictionary.cpp
diff options
context:
space:
mode:
authorGravatar Jonathan Beck2009-10-16 23:33:39 +0200
committerGravatar Jonathan Beck2009-10-16 23:33:39 +0200
commit7372d12b5aa3bd09b20ad9e8f5210d950b001967 (patch)
tree3838c30c6acc1c1ccb9a0acca20ccb3522c039f3 /src/Dictionary.cpp
parent0f69774fcfe32ac2a8dacefbea61e84d0a26a012 (diff)
downloadlibplist-7372d12b5aa3bd09b20ad9e8f5210d950b001967.tar.gz
libplist-7372d12b5aa3bd09b20ad9e8f5210d950b001967.tar.bz2
Fix key valuation in dictionary loop.
Diffstat (limited to 'src/Dictionary.cpp')
-rw-r--r--src/Dictionary.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Dictionary.cpp b/src/Dictionary.cpp
index 15df0b4..79f0afc 100644
--- a/src/Dictionary.cpp
+++ b/src/Dictionary.cpp
@@ -80,7 +80,7 @@ Dictionary::Dictionary(plist_t node) : Structure()
subnode = NULL;
free(key);
key = NULL;
- plist_dict_next_item(_node, it, NULL, &subnode);
+ plist_dict_next_item(_node, it, &key, &subnode);
}
free(it);
}