mirror of
https://github.com/kgabis/parson.git
synced 2025-02-05 17:05:29 +00:00
Fixed condition
This commit is contained in:
parent
e112626cb5
commit
f1bb6e7fbe
2
parson.c
2
parson.c
@ -1718,7 +1718,7 @@ JSON_Status json_object_dotset_value(JSON_Object *object, const char *name, JSON
|
||||
char *current_name = NULL;
|
||||
JSON_Object *temp_obj = NULL;
|
||||
JSON_Value *new_value = NULL;
|
||||
if (value == NULL || name == NULL || value == NULL) {
|
||||
if (object == NULL || name == NULL || value == NULL) {
|
||||
return JSONFailure;
|
||||
}
|
||||
dot_pos = strchr(name, '.');
|
||||
|
Loading…
Reference in New Issue
Block a user