]> git.zerfleddert.de Git - proxmark3-svn/blobdiff - client/cmdscript.c
FIX: Coverity, strlen(Cmd) can never be lesser than zero.. *douh*
[proxmark3-svn] / client / cmdscript.c
index 928a216d7334bc72cf52f4b457f12ecbb111683c..730f4e96ab26dd78e3392015af2ad5ef6d82a8af 100644 (file)
@@ -83,7 +83,7 @@ int CmdList(const char *Cmd)
     {
         while ((ep = readdir (dp)) != NULL)
         {
-            if(ep->d_name != NULL && str_ends_with(ep->d_name, ".lua"))
+            if(str_ends_with(ep->d_name, ".lua"))
                 PrintAndLog("%-16s %s", ep->d_name, "A script file");
         }
         (void) closedir (dp);
Impressum, Datenschutz