1
0
mirror of https://github.com/kgabis/parson.git synced 2025-01-28 06:32:55 +08:00

Merge pull request #89 from lunixoid/master

Fixed condition
This commit is contained in:
Krzysztof Gabis 2017-10-28 00:05:58 +01:00 committed by GitHub
commit b87a27c15c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1718,7 +1718,7 @@ JSON_Status json_object_dotset_value(JSON_Object *object, const char *name, JSON
char *current_name = NULL; char *current_name = NULL;
JSON_Object *temp_obj = NULL; JSON_Object *temp_obj = NULL;
JSON_Value *new_value = NULL; JSON_Value *new_value = NULL;
if (value == NULL || name == NULL || value == NULL) { if (object == NULL || name == NULL || value == NULL) {
return JSONFailure; return JSONFailure;
} }
dot_pos = strchr(name, '.'); dot_pos = strchr(name, '.');