summaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
authorHaruna <haru@dotalux.com>2015-01-12 21:02:53 +0100
committerHaruna <haru@dotalux.com>2015-01-12 21:02:53 +0100
commit74f2ce544bcc8ad814e3512b67f508fe5df40c23 (patch)
treef4c74dc5cc55711552aee5974fb3377ddb9aa433 /src/common
parent6a5636ddf61e4fca9d258c11ebead182564f234f (diff)
parentb64d0a62182800bd1c827b142c490afd94d7ef46 (diff)
downloadhercules-74f2ce544bcc8ad814e3512b67f508fe5df40c23.tar.gz
hercules-74f2ce544bcc8ad814e3512b67f508fe5df40c23.tar.bz2
hercules-74f2ce544bcc8ad814e3512b67f508fe5df40c23.tar.xz
hercules-74f2ce544bcc8ad814e3512b67f508fe5df40c23.zip
Merge pull request #440 from 4144/uninitializedfixes
Different warnings fixes
Diffstat (limited to 'src/common')
-rw-r--r--src/common/utils.c2
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.