From cd7dbe48b6b685063f056db670980a57a66a2638 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Tue, 1 Jul 2003 21:48:13 +0300 Subject: [PATCH] home_expand(NULL) -> NULL --HG-- branch : HEAD --- src/lib/home-expand.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/home-expand.c b/src/lib/home-expand.c index a95055eeff..f258dfb198 100644 --- a/src/lib/home-expand.c +++ b/src/lib/home-expand.c @@ -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++; -- 2.47.3