From 009e4f9d9998cc56f1443afcfb93a3e7dd68583c Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Thu, 25 Jan 2018 18:11:07 +0100 Subject: [PATCH] chg: use return value instead --- client/cmdlfem4x.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/client/cmdlfem4x.c b/client/cmdlfem4x.c index 32b56e106..0294db4a1 100644 --- a/client/cmdlfem4x.c +++ b/client/cmdlfem4x.c @@ -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; }