mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2026-10-23 06:32:37 +00:00
chg: use return value instead
This commit is contained in:
1 parent
681f2cc83d
commit
009e4f9d99
1 file changed
+2
-3
+2
-3
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user