mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-09-11 13:01:28 +02:00
rewrite 14988 as per 14989
This commit is contained in:
parent
79ed1a0e22
commit
ef6193b89b
2 changed files with 3 additions and 3 deletions
|
@ -1,7 +1,7 @@
|
||||||
2001-06-20 Peter Stephenson <pws@csr.com>
|
2001-06-20 Peter Stephenson <pws@csr.com>
|
||||||
|
|
||||||
* 14988: Src/exec.c: names of saved special parameters need
|
* 14988 with mod suggested in 14989: Src/exec.c: avoid names of
|
||||||
to be copied.
|
saved special parameters being trashed.
|
||||||
|
|
||||||
2001-06-19 Bart Schaefer <schaefer@zsh.org>
|
2001-06-19 Bart Schaefer <schaefer@zsh.org>
|
||||||
|
|
||||||
|
|
|
@ -2395,7 +2395,7 @@ save_params(Estate state, Wordcode pc, LinkList *restore_p, LinkList *remove_p)
|
||||||
} else if (!(pm->flags & PM_READONLY) &&
|
} else if (!(pm->flags & PM_READONLY) &&
|
||||||
(unset(RESTRICTED) || !(pm->flags & PM_RESTRICTED))) {
|
(unset(RESTRICTED) || !(pm->flags & PM_RESTRICTED))) {
|
||||||
Param tpm = (Param) zhalloc(sizeof *tpm);
|
Param tpm = (Param) zhalloc(sizeof *tpm);
|
||||||
tpm->nam = dupstring(s);
|
tpm->nam = pm->nam;
|
||||||
copyparam(tpm, pm, 1);
|
copyparam(tpm, pm, 1);
|
||||||
pm = tpm;
|
pm = tpm;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue