diff options
-rw-r--r-- | shell/ash.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/shell/ash.c b/shell/ash.c index f82a772..a592904 100644 --- a/shell/ash.c +++ b/shell/ash.c @@ -2316,6 +2316,7 @@ cdcmd(int argc, char **argv) dest = bltinlookup(homestr); else if (dest[0] == '-' && dest[1] == '\0') { dest = bltinlookup("OLDPWD"); + if ( !dest ) goto out; flags |= CD_PRINT; goto step7; } |