Browse Source

handle NULL passed to json_objct_object_get

Patch via Nikola Pajkovsky


git-svn-id: http://svn.metaparadigm.com/svn/json-c/trunk@75 327403b1-1117-474d-bef2-5cb71233fd97
tags/json-c-0.10-20120530
Jehiah Czebotar 14 years ago
parent
commit
276123efe0
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      json_object.c

+ 1
- 0
json_object.c View File

@@ -256,6 +256,7 @@ void json_object_object_add(struct json_object* jso, const char *key,

struct json_object* json_object_object_get(struct json_object* jso, const char *key)
{
if(!jso) return NULL;
return (struct json_object*) lh_table_lookup(jso->o.c_object, key);
}



Loading…
Cancel
Save