diff options
Diffstat (limited to 'Src/exec.c')
-rw-r--r-- | Src/exec.c | 2 |
1 files changed, 2 insertions, 0 deletions
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; |