summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rw-r--r--bin/sh/eval.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/sh/eval.c b/bin/sh/eval.c
index f6b702b..26e2148 100644
--- a/bin/sh/eval.c
+++ b/bin/sh/eval.c
@@ -166,7 +166,8 @@ evalstring(char *s)
setstackmark(&smark);
setinputstring(s, 1);
while ((n = parsecmd(0)) != NEOF) {
- evaltree(n, 0);
+ if (n != NULL)
+ evaltree(n, 0);
popstackmark(&smark);
}
popfile();
OpenPOWER on IntegriCloud