about summary refs log tree commit diff
path: root/Src/exec.c
diff options
context:
space:
mode:
authorTanaka Akira <akr@users.sourceforge.net>2000-03-15 09:39:05 +0000
committerTanaka Akira <akr@users.sourceforge.net>2000-03-15 09:39:05 +0000
commit2bb32164c71a0cb61e48d818b1209b952435a63f (patch)
tree681b988d22970d49e7203027359caf4812e07d5d /Src/exec.c
parent05eb5d93b193379d8a4671f7a7121c4fc73ffeee (diff)
downloadzsh-2bb32164c71a0cb61e48d818b1209b952435a63f.tar.gz
zsh-2bb32164c71a0cb61e48d818b1209b952435a63f.tar.xz
zsh-2bb32164c71a0cb61e48d818b1209b952435a63f.zip
zsh-workers/10144
Diffstat (limited to 'Src/exec.c')
-rw-r--r--Src/exec.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/Src/exec.c b/Src/exec.c
index 336983e46..120b55eb5 100644
--- a/Src/exec.c
+++ b/Src/exec.c
@@ -3184,7 +3184,7 @@ execautofn(Estate state, int do_exec)
 	if (prog->alloc == EA_MAP)
 	    shf->funcdef = stripkshdef(prog, shf->nam);
 	else
-	    shf->funcdef = zdupeprog(stripkshdef(prog, shf->nam));
+	    shf->funcdef = dupeprog(stripkshdef(prog, shf->nam), 0);
 	shf->flags &= ~PM_UNDEFINED;
     }
     popheap();
@@ -3217,7 +3217,7 @@ loadautofn(Shfunc shf)
     if (prog->alloc == EA_MAP)
 	shf->funcdef = stripkshdef(prog, shf->nam);
     else
-	shf->funcdef = zdupeprog(stripkshdef(prog, shf->nam));
+	shf->funcdef = dupeprog(stripkshdef(prog, shf->nam), 0);
     shf->flags &= ~PM_UNDEFINED;
 
     popheap();
@@ -3359,7 +3359,7 @@ runshfunc(Eprog prog, FuncWrap wrap, char *name)
  * list of its contents.                                                    */
 
 /**/
-static Eprog
+Eprog
 getfpfunc(char *s)
 {
     char **pp, buf[PATH_MAX];