summaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
authorSami Kerola <kerolasa@iki.fi>2013-09-02 21:30:46 +0100
committerAllan McRae <allan@archlinux.org>2013-09-04 09:51:20 +1000
commit9020bcee379502115e1109d0646a6488f1667dff (patch)
tree5f314b2643d70e257773db334aa175390e585cb5 /src/common
parent9e50e5314c76085814187272c544cecda0a63534 (diff)
common: compare value rather than pointer address
Signed-off-by: Sami Kerola <kerolasa@iki.fi> Signed-off-by: Allan McRae <allan@archlinux.org>
Diffstat (limited to 'src/common')
-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(".");
}