mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2024-12-29 11:52:59 +08:00
chg: use return value instead
This commit is contained in:
parent
681f2cc83d
commit
009e4f9d99
1 changed files with 2 additions and 3 deletions
|
@ -485,9 +485,8 @@ int CmdEM410xBrute(const char *Cmd) {
|
|||
delay = param_get32ex(Cmd, 4, 1000, 10);
|
||||
}
|
||||
|
||||
param_getstr(Cmd, 0, filename, FILE_PATH_SIZE);
|
||||
|
||||
if (strlen(filename) == 0) {
|
||||
int filelen = param_getstr(Cmd, 0, filename, FILE_PATH_SIZE);
|
||||
if (filelen == 0) {
|
||||
PrintAndLog("Error: Please specify a filename");
|
||||
return 1;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue