mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-20 21:33:47 -07:00
style
This commit is contained in:
parent
278ec017fe
commit
df96b58fcc
3 changed files with 11 additions and 6 deletions
|
@ -480,9 +480,14 @@ static int unpack_object(scanner_t *s, json_t *root, va_list *ap) {
|
|||
return -1;
|
||||
}
|
||||
|
||||
|
||||
if (root && !json_is_object(root)) {
|
||||
set_error(s, "<validation>", json_error_wrong_type, "Expected object, got %s",
|
||||
type_name(root));
|
||||
set_error(s,
|
||||
"<validation>",
|
||||
json_error_wrong_type,
|
||||
"Expected object, got %s",
|
||||
(root) ? type_name(root) : "NULL"
|
||||
);
|
||||
goto out;
|
||||
}
|
||||
next_token(s);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue