1
0
Fork 0
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:
Oliver Kiddle 2001-12-18 16:05:01 +00:00
parent 716f56667b
commit f0c5812f1e
2 changed files with 9 additions and 1 deletions

View file

@ -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

View file

@ -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;
}