mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-14 18:48:13 -07:00
cppchecker fixes
This commit is contained in:
parent
7cd509c77c
commit
f416fa9b4f
6 changed files with 13 additions and 15 deletions
|
@ -185,7 +185,7 @@ static char *read_string(scanner_t *s, va_list *ap,
|
|||
length = va_arg(*ap, size_t);
|
||||
} else {
|
||||
prev_token(s);
|
||||
length = s->has_error ? 0 : strlen(str);
|
||||
length = s->has_error == 1 ? 0 : strlen(str);
|
||||
}
|
||||
|
||||
if (!s->has_error && strbuffer_append_bytes(&strbuff, str, length) == -1) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue