diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-01-11 13:54:40 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-01-12 22:57:54 +0300 |
commit | b64d0a62182800bd1c827b142c490afd94d7ef46 (patch) | |
tree | f4c74dc5cc55711552aee5974fb3377ddb9aa433 /src/common | |
parent | f890d6dd229eb39fe3674258ee054d3e5cf3d185 (diff) | |
download | hercules-b64d0a62182800bd1c827b142c490afd94d7ef46.tar.gz hercules-b64d0a62182800bd1c827b142c490afd94d7ef46.tar.bz2 hercules-b64d0a62182800bd1c827b142c490afd94d7ef46.tar.xz hercules-b64d0a62182800bd1c827b142c490afd94d7ef46.zip |
Fix some compilation warnings with clang 3.6.
Diffstat (limited to 'src/common')
-rw-r--r-- | src/common/utils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/utils.c b/src/common/utils.c index f4e261222..5688362de 100644 --- a/src/common/utils.c +++ b/src/common/utils.c @@ -198,7 +198,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 matches. - if (entry->d_name && strstr(entry->d_name, pattern)) { + if (strstr(entry->d_name, pattern)) { func( tmppath ); } // check if it is a directory. |