From a260aa4a4c752b0fe319729da83ca0481db95270 Mon Sep 17 00:00:00 2001 From: Tanaka Akira Date: Fri, 4 Feb 2000 12:05:53 +0000 Subject: zsh-workers/9558 --- Src/exec.c | 2 ++ Src/parse.c | 6 +++++- 2 files changed, 7 insertions(+), 1 deletion(-) (limited to 'Src') diff --git a/Src/exec.c b/Src/exec.c index 45f771bd2..e021a4581 100644 --- a/Src/exec.c +++ b/Src/exec.c @@ -3096,6 +3096,8 @@ loadautofn(Shfunc shf) zerr("%s: function definition file not found", shf->nam, 0); return 1; } + if (!prog) + prog = &dummy_eprog; PERMALLOC { shf->funcdef = dupeprog(stripkshdef(prog, shf->nam)); } LASTALLOC; diff --git a/Src/parse.c b/Src/parse.c index 9d450fc26..8d72b4826 100644 --- a/Src/parse.c +++ b/Src/parse.c @@ -357,7 +357,11 @@ parse_list(void) incmdpos = 1; yylex(); ret = par_list(); - if (tok == LEXERR) { +#if 0 + if (tok == LEXERR) +#endif + if (tok != ENDINPUT) + { yyerror(0); return NULL; } -- cgit 1.4.1