diff options
author | Peter Stephenson <p.w.stephenson@ntlworld.com> | 2015-06-27 21:19:01 +0100 |
---|---|---|
committer | Peter Stephenson <p.w.stephenson@ntlworld.com> | 2015-06-27 21:19:26 +0100 |
commit | eb08892dcfa6d0b5a22532ae37f9ed52f478b68e (patch) | |
tree | 45211b32d9c3b2e789d9bc72d073780a06fcb375 /Src/builtin.c | |
parent | ef080283468cbd7b46ceb19c148cd0b9c4d52356 (diff) | |
download | zsh-eb08892dcfa6d0b5a22532ae37f9ed52f478b68e.tar.gz zsh-eb08892dcfa6d0b5a22532ae37f9ed52f478b68e.tar.xz zsh-eb08892dcfa6d0b5a22532ae37f9ed52f478b68e.zip |
35635: a bit more consistency about making elements local
Diffstat (limited to 'Src/builtin.c')
-rw-r--r-- | Src/builtin.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Src/builtin.c b/Src/builtin.c index ac5a568e8..e7976b51a 100644 --- a/Src/builtin.c +++ b/Src/builtin.c @@ -2325,7 +2325,7 @@ typeset_single(char *cname, char *pname, Param pm, UNUSED(int func), zerrnam(cname, "%s: can't create readonly array elements", pname); return NULL; - } else if (on & PM_LOCAL) { + } else if ((on & PM_LOCAL) && locallevel) { *subscript = 0; pm = (Param) (paramtab == realparamtab ? gethashnode2(paramtab, pname) : |