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:
Sami Kerola 2013-09-02 21:30:46 +01:00 committed by Allan McRae
parent 9e50e5314c
commit 9020bcee37
1 changed files with 1 additions and 1 deletions

View File

@ -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(".");
}