[pacman-dev] [PATCH 1/3] common: compare value rather than pointer address
Sami Kerola
kerolasa at iki.fi
Mon Sep 2 16:30:46 EDT 2013
Signed-off-by: Sami Kerola <kerolasa at iki.fi>
---
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
More information about the pacman-dev
mailing list