aboutsummaryrefslogtreecommitdiff
path: root/bin/sh/parser.c
diff options
context:
space:
mode:
authorJilles Tjoelker <jilles@FreeBSD.org>2016-02-21 18:54:17 +0000
committerJilles Tjoelker <jilles@FreeBSD.org>2016-02-21 18:54:17 +0000
commitc39f3bac71af80db95b52a86bb4b16f9cb95deb6 (patch)
tree936f396096f5dce259ecd2353927c5b450bf13ad /bin/sh/parser.c
parent5036353a49355b8a984347eb5377693cff9aaa5f (diff)
Notes
Diffstat (limited to 'bin/sh/parser.c')
-rw-r--r--bin/sh/parser.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/bin/sh/parser.c b/bin/sh/parser.c
index 53d7923f8755..d324d88a8f18 100644
--- a/bin/sh/parser.c
+++ b/bin/sh/parser.c
@@ -1930,6 +1930,8 @@ static void
setprompt(int which)
{
whichprompt = which;
+ if (which == 0)
+ return;
#ifndef NO_HISTORY
if (!el)