This commit is contained in:
iceman1001 2019-04-13 02:10:44 +02:00
parent f8a533af5d
commit 85b4463000

View file

@ -182,7 +182,7 @@ int json_path_set_new(json_t *json, const char *path, json_t *value, size_t flag
json_array_set(parent, index_saved, value);
cursor = json_array_get(parent, index_saved);
} else {
jsonp_error_set(error, -1, -1, last_peek - buf, json_error_item_not_found, "invalid path");
jsonp_error_set(error, -1, -1, 0, json_error_item_not_found, "invalid path");
goto fail;
}