about summary refs log tree commit diff
path: root/Src
diff options
context:
space:
mode:
authorOliver Kiddle <opk@users.sourceforge.net>2001-12-17 13:26:13 +0000
committerOliver Kiddle <opk@users.sourceforge.net>2001-12-17 13:26:13 +0000
commita476e5b7a3c0bc52e20656a729efc65f4ba0f352 (patch)
tree7e4651e7eeb4403f322b2436eb0146f478385bbc /Src
parent2ed38d79ca0bbc613115b30a9e99a797542ab053 (diff)
downloadzsh-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.c3
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;
 }