mirror of
https://github.com/kgabis/parson.git
synced 2025-02-05 17:05:29 +00:00
Merge pull request #18 from gageas/master
Fix compile error on C++ compiler.
This commit is contained in:
commit
69927e1612
8
parson.c
8
parson.c
@ -1224,8 +1224,8 @@ JSON_Status json_object_set_null(JSON_Object *object, const char *name) {
|
||||
}
|
||||
|
||||
JSON_Status json_object_dotset_value(JSON_Object *object, const char *name, JSON_Value *value) {
|
||||
char *dot_pos = strchr(name, '.');
|
||||
char *current_name = NULL;
|
||||
const char *dot_pos = strchr(name, '.');
|
||||
const char *current_name = NULL;
|
||||
JSON_Object *temp_obj = NULL;
|
||||
JSON_Value *new_value = NULL;
|
||||
if (value == NULL) {
|
||||
@ -1291,8 +1291,8 @@ JSON_Status json_object_remove(JSON_Object *object, const char *name) {
|
||||
}
|
||||
|
||||
JSON_Status json_object_dotremove(JSON_Object *object, const char *name) {
|
||||
char *dot_pos = strchr(name, '.');
|
||||
char *current_name = NULL;
|
||||
const char *dot_pos = strchr(name, '.');
|
||||
const char *current_name = NULL;
|
||||
JSON_Object *temp_obj = NULL;
|
||||
if (dot_pos == NULL) {
|
||||
return json_object_remove(object, name);
|
||||
|
Loading…
Reference in New Issue
Block a user