projects
/
jansson.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
86e1481
)
Fix json_object_get
author
Petri Lehtinen
<petri@digip.org>
Tue, 12 May 2009 19:15:48 +0000
(22:15 +0300)
committer
Petri Lehtinen
<petri@digip.org>
Tue, 12 May 2009 19:15:48 +0000
(22:15 +0300)
src/value.c
patch
|
blob
|
history
diff --git
a/src/value.c
b/src/value.c
index
514faac
..
ea539ff
100644
(file)
--- a/
src/value.c
+++ b/
src/value.c
@@
-100,6
+100,7
@@
json_t *json_object_get(const json_t *json, const char *key)
if(!json_is_object(json))
return NULL;
+ object = json_to_object(json);
return hashtable_get(&object->hashtable, key);
}