From 9020bcee379502115e1109d0646a6488f1667dff Mon Sep 17 00:00:00 2001 From: Sami Kerola Date: Mon, 2 Sep 2013 21:30:46 +0100 Subject: common: compare value rather than pointer address Signed-off-by: Sami Kerola Signed-off-by: Allan McRae --- src/common/util-common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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("."); } -- cgit v1.2.3-70-g09d2