From 49b19376fa461783ce2ed7e71e729d205d636e08 Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Fri, 7 May 2021 10:19:00 +0200 Subject: [PATCH] fix cppchecker knownconditiontrueorfalse --- client/src/fileutils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/fileutils.c b/client/src/fileutils.c index 45185ea71..507d896b2 100644 --- a/client/src/fileutils.c +++ b/client/src/fileutils.c @@ -1601,7 +1601,7 @@ static int filelist(const char *path, const char *ext, uint8_t last, bool tentat filelist(newpath, ext, last + ((i == n - 1) << (indent + 1)), tentative, indent + 1, strlen(path)); } else { - if ((ext == NULL) || (ext && (str_endswith(namelist[i]->d_name, ext)))) { + if ((ext == NULL) || ((str_endswith(namelist[i]->d_name, ext)))) { for (uint8_t j = 0; j < indent + 1; j++) { PrintAndLogEx(NORMAL, "%s " NOLF, ((last >> j) & 1) ? " " : "│");