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 ++ 1 file changed, 2 insertions(+) (limited to 'Src/exec.c') 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; -- cgit 1.4.1