projects
/
jansson.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix invalid object key hashing in json_unpack() strict checking mode
[jansson.git]
/
src
/
pack_unpack.c
diff --git
a/src/pack_unpack.c
b/src/pack_unpack.c
index
5001764
..
20d540b
100644
(file)
--- a/
src/pack_unpack.c
+++ b/
src/pack_unpack.c
@@
-233,7
+233,7
@@
static int unpack_object(scanner_t *s, json_t *root, va_list *ap)
*/
hashtable_t key_set;
- if(hashtable_init(&key_set, jsonp_hash_
key, jsonp_key
_equal, NULL, NULL)) {
+ if(hashtable_init(&key_set, jsonp_hash_
str, jsonp_str
_equal, NULL, NULL)) {
set_error(s, "<internal>", "Out of memory");
return -1;
}