mirror of
https://github.com/json-c/json-c.git
synced 2026-03-25 07:59:07 +08:00
rollback api to 0.12
This commit is contained in:
@@ -240,7 +240,7 @@ int json_pointer_set(struct json_object **obj, const char *path, struct json_obj
|
||||
}
|
||||
|
||||
if (path[0] == '\0') {
|
||||
json_object_release(*obj);
|
||||
json_object_put(*obj);
|
||||
*obj = value;
|
||||
return 0;
|
||||
}
|
||||
@@ -294,7 +294,7 @@ int json_pointer_setf(struct json_object **obj, struct json_object *value, const
|
||||
return rc;
|
||||
|
||||
if (path_copy[0] == '\0') {
|
||||
json_object_release(*obj);
|
||||
json_object_put(*obj);
|
||||
*obj = value;
|
||||
goto out;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user