1
0
mirror of git://git.code.sf.net/p/zsh/code synced 2024-11-11 04:20:01 +01:00

Bug restoring saving special parameters for function scope.

This commit is contained in:
Peter Stephenson 2001-06-20 10:06:51 +00:00
parent bdea3cd768
commit 79ed1a0e22
2 changed files with 6 additions and 1 deletions

@ -1,3 +1,8 @@
2001-06-20 Peter Stephenson <pws@csr.com>
* 14988: Src/exec.c: names of saved special parameters need
to be copied.
2001-06-19 Bart Schaefer <schaefer@zsh.org>
* 14976: aczsh.m4: Add socklen_t to possible SOCKLEN_T types.

@ -2395,7 +2395,7 @@ save_params(Estate state, Wordcode pc, LinkList *restore_p, LinkList *remove_p)
} else if (!(pm->flags & PM_READONLY) &&
(unset(RESTRICTED) || !(pm->flags & PM_RESTRICTED))) {
Param tpm = (Param) zhalloc(sizeof *tpm);
tpm->nam = s;
tpm->nam = dupstring(s);
copyparam(tpm, pm, 1);
pm = tpm;
}