summary refs log tree commit diff
path: root/Src
diff options
context:
space:
mode:
authorSven Wischnowsky <wischnow@users.sourceforge.net>2000-08-01 08:27:18 +0000
committerSven Wischnowsky <wischnow@users.sourceforge.net>2000-08-01 08:27:18 +0000
commitd109322359dc02e5008379da478628e2cace65e7 (patch)
treef3daff815c9ff25be73e1f1a6892c8a4e6af2fa9 /Src
parent18772af4122cd252f6b1b927c9c493f0a6b687af (diff)
downloadzsh-d109322359dc02e5008379da478628e2cace65e7.tar.gz
zsh-d109322359dc02e5008379da478628e2cace65e7.tar.xz
zsh-d109322359dc02e5008379da478628e2cace65e7.zip
remove tests for kshautoload (use zcompile -z); fix for setting scriptname for functions that redefine themselves
Diffstat (limited to 'Src')
-rw-r--r--Src/exec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Src/exec.c b/Src/exec.c
index a3e28d45d..c9a82f413 100644
--- a/Src/exec.c
+++ b/Src/exec.c
@@ -3189,7 +3189,7 @@ execautofn(Estate state, int do_exec)
 	return 1;
 
     oldscriptname = scriptname;
-    scriptname = dupstring(state->prog->shf->nam);
+    scriptname = dupstring(shf->nam);
     execode(shf->funcdef, 1, 0);
     scriptname = oldscriptname;