changeset 1588:e0006f30b496 HEAD

home_expand(NULL) -> NULL
author Timo Sirainen <tss@iki.fi>
date Tue, 01 Jul 2003 21:48:13 +0300
parents c390d5ac3327
children 55431c7b6314
files src/lib/home-expand.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/lib/home-expand.c	Tue Jul 01 21:14:18 2003 +0300
+++ b/src/lib/home-expand.c	Tue Jul 01 21:48:13 2003 +0300
@@ -12,7 +12,7 @@
 	const char *home, *p, *orig_path;
 	struct passwd *pw;
 
-	if (*path != '~')
+	if (path == NULL || *path != '~')
 		return path;
 
 	orig_path = path++;