minor parsing issue
This commit is contained in:
1 parent
59bc927698
commit
d1d9d00d99
3 files changed
+738
-2
No files matched your search
@@ -468,7 +468,11 @@ static int CmdFlashMemInfo(const char *Cmd) {
|
||||
// shall_write = arg_get_lit(ctx, 5);
|
||||
CLIParserFree(ctx);
|
||||
|
||||
if (res || (dlen > 0 && dlen < sizeof(id))) {
|
||||
if (res) {
|
||||
return PM3_EINVARG;
|
||||
}
|
||||
|
||||
if (dlen > 0 && dlen < sizeof(id)) {
|
||||
PrintAndLogEx(FAILED, "Error parsing flash memory id, expect 8, got %d", dlen);
|
||||
return PM3_EINVARG;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user