From 0b58486ec47d0b5b4dba6ea603de2682aaa15525 Mon Sep 17 00:00:00 2001 From: Petri Lehtinen Date: Tue, 12 May 2009 22:15:48 +0300 Subject: [PATCH] Fix json_object_get --- src/value.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/value.c b/src/value.c index 514faac..ea539ff 100644 --- 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); }