summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/common/util-common.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/util-common.c b/src/common/util-common.c
index 7145e492..40623b92 100644
--- a/src/common/util-common.c
+++ b/src/common/util-common.c
@@ -48,7 +48,7 @@ char *mdirname(const char *path)
char *ret, *last;
/* null or empty path */
- if(path == NULL || path == '\0') {
+ if(path == NULL || *path == '\0') {
return strdup(".");
}