diff options
author | Peter Stephenson <pws@users.sourceforge.net> | 2003-07-03 11:07:39 +0000 |
---|---|---|
committer | Peter Stephenson <pws@users.sourceforge.net> | 2003-07-03 11:07:39 +0000 |
commit | 936208bd9f36c7705ed0dd0966551b57a29d40a5 (patch) | |
tree | 06ef1c4e8b5d568d1612206f9b7afaa01192c5d0 /Src | |
parent | e81160def298a80d49d59779aa1bb2c6329618f4 (diff) | |
download | zsh-936208bd9f36c7705ed0dd0966551b57a29d40a5.tar.gz zsh-936208bd9f36c7705ed0dd0966551b57a29d40a5.tar.xz zsh-936208bd9f36c7705ed0dd0966551b57a29d40a5.zip |
18769: handle parse errors in autoload functions properly
Diffstat (limited to 'Src')
-rw-r--r-- | Src/exec.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |