Fixed a few compiler warnings on clang (#3263)

Mostly pointer-bool-conversion and autological-pointer-compare
This commit is contained in:
Lemongrass3110
2018-07-05 22:53:20 +02:00
committed by GitHub
parent 532e043490
commit 91169d7ebc
16 changed files with 55 additions and 79 deletions

View File

@@ -240,7 +240,7 @@ void findfile(const char *p, const char *pat, void (func)(const char*))
sprintf(tmppath,"%s%c%s",path, PATHSEP, entry->d_name);
// check if the pattern matchs.
if (entry->d_name && strstr(entry->d_name, pattern)) {
if (entry->d_name[0] && strstr(entry->d_name, pattern)) {
func( tmppath );
}
// check if it is a directory.