diff options
Diffstat (limited to 'lib/json_util.c')
-rw-r--r-- | lib/json_util.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/json_util.c b/lib/json_util.c index 43e687e3..470a6b02 100644 --- a/lib/json_util.c +++ b/lib/json_util.c @@ -30,7 +30,7 @@ json_value *json_o_get( const json_value *obj, const json_char *name ) { int i; - if( obj->type != json_object ) + if( !obj || obj->type != json_object ) return NULL; for( i = 0; i < obj->u.object.length; ++ i) |