Reformat json_object_object_get() and json_object_object_get_ex().

This commit is contained in:
Eric Haszlakiewicz
2012-10-18 17:16:36 -05:00
parent 5450bed051
commit e36e562872

View File

@@ -400,15 +400,16 @@ json_bool json_object_object_get_ex(struct json_object* jso, const char *key, st
if (value != NULL)
*value = NULL;
if (NULL == jso) return FALSE;
if (NULL == jso)
return FALSE;
switch(jso->o_type) {
switch(jso->o_type)
{
case json_type_object:
return lh_table_lookup_ex(jso->o.c_object, (void*)key, (void**)value);
default:
if (value != NULL) {
if (value != NULL)
*value = NULL;
}
return FALSE;
}
}