mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-10-16 12:21:18 +02:00
16364: further to 16351, except specials from having their value set to null
This commit is contained in:
parent
716f56667b
commit
f0c5812f1e
2 changed files with 9 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
2001-12-18 Oliver Kiddle <opk@zsh.org>
|
||||
|
||||
* 16364: Src/params.c: further to 16351, except specials
|
||||
from having their value set to null
|
||||
|
||||
2001-12-17 Oliver Kiddle <opk@zsh.org>
|
||||
|
||||
* 16351: Src/params.c: fix bug in parameter unset code
|
||||
|
|
|
@ -2165,7 +2165,10 @@ stdunsetfn(Param pm, int exp)
|
|||
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;
|
||||
default: pm->u.str = NULL; break;
|
||||
default:
|
||||
if (!(pm->flags & PM_SPECIAL))
|
||||
pm->u.str = NULL;
|
||||
break;
|
||||
}
|
||||
pm->flags |= PM_UNSET;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue