chg: use return value instead

This commit is contained in:
iceman1001 2018-01-25 18:11:07 +01:00
parent 681f2cc83d
commit 009e4f9d99

View file

@ -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;
}