common: compare value rather than pointer address
Signed-off-by: Sami Kerola <kerolasa@iki.fi> Signed-off-by: Allan McRae <allan@archlinux.org>
This commit is contained in:
parent
9e50e5314c
commit
9020bcee37
|
@ -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(".");
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue