]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
home_expand(NULL) -> NULL
authorTimo Sirainen <tss@iki.fi>
Tue, 1 Jul 2003 18:48:13 +0000 (21:48 +0300)
committerTimo Sirainen <tss@iki.fi>
Tue, 1 Jul 2003 18:48:13 +0000 (21:48 +0300)
--HG--
branch : HEAD

src/lib/home-expand.c

index a95055eeff1e7b6b19d6f806920ab3a323d1a758..f258dfb198ca9c12ca94b766756fd9127e7d7dea 100644 (file)
@@ -12,7 +12,7 @@ const char *home_expand(const char *path)
        const char *home, *p, *orig_path;
        struct passwd *pw;
 
-       if (*path != '~')
+       if (path == NULL || *path != '~')
                return path;
 
        orig_path = path++;