aboutsummaryrefslogtreecommitdiff
path: root/shell
diff options
context:
space:
mode:
Diffstat (limited to 'shell')
-rw-r--r--shell/ash.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/shell/ash.c b/shell/ash.c
index 44ec2eafd..ef4a47afe 100644
--- a/shell/ash.c
+++ b/shell/ash.c
@@ -6532,9 +6532,7 @@ exptilde(char *startp, int flag)
6532 home = lookupvar("HOME"); 6532 home = lookupvar("HOME");
6533 } else { 6533 } else {
6534 pw = getpwnam(name); 6534 pw = getpwnam(name);
6535 if (pw == NULL) 6535 home = pw ? pw->pw_dir : NULL;
6536 goto lose;
6537 home = pw->pw_dir;
6538 } 6536 }
6539 *p = c; 6537 *p = c;
6540 if (!home) 6538 if (!home)