Signed-off-by: Sami Kerola <[email protected]>
---
 src/common/util-common.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/common/util-common.c b/src/common/util-common.c
index 7145e49..40623b9 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(".");
        }
 
-- 
1.8.4


Reply via email to