diff options
author | Sami Kerola <kerolasa@iki.fi> | 2013-09-02 22:30:46 +0200 |
---|---|---|
committer | Allan McRae <allan@archlinux.org> | 2013-09-04 01:51:20 +0200 |
commit | 9020bcee379502115e1109d0646a6488f1667dff (patch) | |
tree | 5f314b2643d70e257773db334aa175390e585cb5 | |
parent | 9e50e5314c76085814187272c544cecda0a63534 (diff) | |
download | pacman-9020bcee379502115e1109d0646a6488f1667dff.tar.gz pacman-9020bcee379502115e1109d0646a6488f1667dff.tar.xz |
common: compare value rather than pointer address
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Signed-off-by: Allan McRae <allan@archlinux.org>
-rw-r--r-- | src/common/util-common.c | 2 |
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("."); } |