From 81e7e34a24cf760ac16c15875ac11aef10473b90 Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Wed, 9 Oct 2019 13:44:51 +0200 Subject: [PATCH] revert tainted --- client/proxmark3.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/client/proxmark3.c b/client/proxmark3.c index 31afe470f..c6045d900 100644 --- a/client/proxmark3.c +++ b/client/proxmark3.c @@ -157,11 +157,9 @@ check_script: memset(script_cmd_buf, 0, sizeof(script_cmd_buf)); // read script file - if (!fgets(script_cmd_buf, sizeof(script_cmd_buf), current_cmdscriptfile())) { + if (fgets(script_cmd_buf, sizeof(script_cmd_buf), current_cmdscriptfile()) == NULL) { if (!pop_cmdscriptfile()) break; - if (script_cmd_buf == NULL) - break; goto check_script; } else {