diff options
| author | Peter Stephenson <pws@users.sourceforge.net> | 2001-06-20 10:06:51 +0000 |
|---|---|---|
| committer | Peter Stephenson <pws@users.sourceforge.net> | 2001-06-20 10:06:51 +0000 |
| commit | 79ed1a0e22f0660eedbd3966ea51d74928d68d26 (patch) | |
| tree | 687e69275be894efb4804e782dba077f24e894fe /Src/exec.c | |
| parent | Add socklen_t to possible SOCKLEN_T types. (diff) | |
| download | zsh-79ed1a0e22f0660eedbd3966ea51d74928d68d26.tar zsh-79ed1a0e22f0660eedbd3966ea51d74928d68d26.tar.gz zsh-79ed1a0e22f0660eedbd3966ea51d74928d68d26.tar.bz2 zsh-79ed1a0e22f0660eedbd3966ea51d74928d68d26.tar.lz zsh-79ed1a0e22f0660eedbd3966ea51d74928d68d26.tar.xz zsh-79ed1a0e22f0660eedbd3966ea51d74928d68d26.tar.zst zsh-79ed1a0e22f0660eedbd3966ea51d74928d68d26.zip | |
Bug restoring saving special parameters for function scope.
Diffstat (limited to 'Src/exec.c')
| -rw-r--r-- | Src/exec.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |
