Fixed condition

pull/89/head
Roman Kalashnikov 7 years ago committed by GitHub
parent e112626cb5
commit f1bb6e7fbe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 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…
Cancel
Save