1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-09-02 22:11:54 +02:00

37168: No WARN_CREATE_GLOBAL on special parameters

This commit is contained in:
Peter Stephenson 2015-11-20 11:55:07 +00:00
parent 72a67716ac
commit 2737ae4a66
2 changed files with 3 additions and 1 deletions

View file

@ -1,5 +1,7 @@
2015-11-20 Peter Stephenson <p.stephenson@samsung.com>
* 37168: Src/params.c: no WARN_CREATE_GLOBAL on special parameters.
* 20974: Src/builtin.c, Test/D04parameter.ztst: fix bug
when scalar value assigned to special array in typeset.

View file

@ -2702,7 +2702,7 @@ check_warn_create(Param pm, const char *pmtype)
Funcstack i;
const char *name;
if (pm->level != 0)
if (pm->level != 0 || (pm->node.flags & PM_SPECIAL))
return;
name = NULL;