rollback api to 0.12

This commit is contained in:
Haffon
2017-09-07 10:02:21 +08:00
parent 86a3a6475f
commit b301f4ea01
6 changed files with 20 additions and 20 deletions

View File

@@ -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;
}