BUGS: more Coverity scan fixes.

This commit is contained in:
iceman1001 2015-05-13 14:08:59 +02:00
parent 2696349f16
commit 664bb5ae72
6 changed files with 10 additions and 13 deletions

View 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);