mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-02-15 03:34:22 +08:00
style
This commit is contained in:
parent
4cadd8c2ee
commit
f8a533af5d
1 changed files with 2 additions and 2 deletions
|
@ -110,7 +110,7 @@ int json_path_set_new(json_t *json, const char *path, json_t *value, size_t flag
|
|||
if (expect == path_delims) {
|
||||
break;
|
||||
} else {
|
||||
jsonp_error_set(error, -1, -1, buf, json_error_invalid_format, "missing ']'?");
|
||||
jsonp_error_set(error, -1, -1, last_peek - buf, json_error_invalid_format, "missing ']'?");
|
||||
goto fail;
|
||||
}
|
||||
}
|
||||
|
@ -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, (peek) ? peek - buf : buf, json_error_item_not_found, "invalid path");
|
||||
jsonp_error_set(error, -1, -1, last_peek - buf, json_error_item_not_found, "invalid path");
|
||||
goto fail;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue