Fix json_object_get
This commit is contained in:
parent
86e1481cdb
commit
0b58486ec4
@ -100,6 +100,7 @@ json_t *json_object_get(const json_t *json, const char *key)
|
|||||||
if(!json_is_object(json))
|
if(!json_is_object(json))
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
|
object = json_to_object(json);
|
||||||
return hashtable_get(&object->hashtable, key);
|
return hashtable_get(&object->hashtable, key);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user