diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | Src/exec.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog index 4969182fa..db8a6ecc9 100644 --- a/ChangeLog +++ b/ChangeLog @@ -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. diff --git a/Src/exec.c b/Src/exec.c index aa78a7ce6..595d26532 100644 --- a/Src/exec.c +++ b/Src/exec.c @@ -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; } |