diff options
author | Oliver Kiddle <opk@users.sourceforge.net> | 2001-12-17 13:26:13 +0000 |
---|---|---|
committer | Oliver Kiddle <opk@users.sourceforge.net> | 2001-12-17 13:26:13 +0000 |
commit | a476e5b7a3c0bc52e20656a729efc65f4ba0f352 (patch) | |
tree | 7e4651e7eeb4403f322b2436eb0146f478385bbc /Src | |
parent | 2ed38d79ca0bbc613115b30a9e99a797542ab053 (diff) | |
download | zsh-a476e5b7a3c0bc52e20656a729efc65f4ba0f352.tar.gz zsh-a476e5b7a3c0bc52e20656a729efc65f4ba0f352.tar.xz zsh-a476e5b7a3c0bc52e20656a729efc65f4ba0f352.zip |
fix bug in parameter unset code that caused seg fault (16351)
Diffstat (limited to 'Src')
-rw-r--r-- | Src/params.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Src/params.c b/Src/params.c index e0a572e62..f71b8338d 100644 --- a/Src/params.c +++ b/Src/params.c @@ -2164,7 +2164,8 @@ stdunsetfn(Param pm, int exp) switch (PM_TYPE(pm->flags)) { case PM_SCALAR: pm->sets.cfn(pm, NULL); break; case PM_ARRAY: pm->sets.afn(pm, NULL); break; - case PM_HASHED: pm->sets.hfn(pm, NULL); break; + case PM_HASHED: pm->sets.hfn(pm, NULL); break; + default: pm->u.str = NULL; break; } pm->flags |= PM_UNSET; } |