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:
parent
bdea3cd768
commit
79ed1a0e22
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user