summaryrefslogtreecommitdiff
path: root/Src/exec.c
diff options
context:
space:
mode:
Diffstat (limited to 'Src/exec.c')
-rw-r--r--Src/exec.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/Src/exec.c b/Src/exec.c
index 1e5a2d0fd..d19c55ad4 100644
--- a/Src/exec.c
+++ b/Src/exec.c
@@ -162,6 +162,8 @@ parse_string(char *s)
lineno = 1;
p = parse_list();
lineno = oldlineno;
+ if (tok == LEXERR && !lastval)
+ lastval = 1;
strinend();
inpop();
lexrestore();