From 936208bd9f36c7705ed0dd0966551b57a29d40a5 Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Thu, 3 Jul 2003 11:07:39 +0000 Subject: 18769: handle parse errors in autoload functions properly --- Src/exec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Src/exec.c') diff --git a/Src/exec.c b/Src/exec.c index bcd0e93bb..ad992e23e 100644 --- a/Src/exec.c +++ b/Src/exec.c @@ -3339,7 +3339,7 @@ loadautofn(Shfunc shf, int fksh, int autol) return NULL; } if (!prog) - prog = &dummy_eprog; + return NULL; if (ksh == 2 || (ksh == 1 && isset(KSHAUTOLOAD))) { if (autol) { prog->flags |= EF_RUN; -- cgit 1.4.1