1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-12-29 19:12:20 +01:00

fix bug in parameter unset code that caused seg fault (16351)

This commit is contained in:
Oliver Kiddle 2001-12-17 11:10:46 +00:00
parent 3902c8ea8d
commit 13ab7280aa
2 changed files with 9 additions and 4 deletions

View file

@ -1,10 +1,14 @@
2001-12-17 Oliver Kiddle <opk@zsh.org>
* 16351: Src/params.c: fix bug in parameter unset code
2001-12-17 Clint Adams <clint@zsh.org>
* Completion/Debian/Command/.distfiles,
* Completion/Debian/Command/_make-kpkg: completion for
* 16349: Completion/Debian/Command/.distfiles,
Completion/Debian/Command/_make-kpkg: completion for
make-kpkg.
* ref 16347: Src/params.c, Src/subst.c:
* 16347: Src/params.c, Src/subst.c:
tweaks pointed out by Zefram.
2001-12-16 Clint Adams <clint@zsh.org>

View file

@ -2174,7 +2174,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;
}