about summary refs log tree commit diff
path: root/Src/exec.c
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2000-07-11 16:43:26 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2000-07-11 16:43:26 +0000
commit32d2d47fd5c71a056c93fd47069491bfeba6b25c (patch)
tree509cb4374d362bebb220a80eab6529c3adb9ccbc /Src/exec.c
parentac223786a1f141e56d89fbab7237b547e70cfbb0 (diff)
downloadzsh-32d2d47fd5c71a056c93fd47069491bfeba6b25c.tar.gz
zsh-32d2d47fd5c71a056c93fd47069491bfeba6b25c.tar.xz
zsh-32d2d47fd5c71a056c93fd47069491bfeba6b25c.zip
12220: message for missing autoload function
Diffstat (limited to 'Src/exec.c')
-rw-r--r--Src/exec.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/Src/exec.c b/Src/exec.c
index 6d2042721..aa462de92 100644
--- a/Src/exec.c
+++ b/Src/exec.c
@@ -3201,7 +3201,10 @@ loadautofn(Shfunc shf, int fksh, int autol)
 	ksh = fksh;
 
     if (prog == &dummy_eprog) {
+	/* We're not actually in the function; decrement locallevel */
+	locallevel--;
 	zerr("%s: function definition file not found", shf->nam, 0);
+	locallevel++;
 	popheap();
 	return NULL;
     }