diff options
author | Peter Stephenson <pws@zsh.org> | 2015-12-04 10:44:33 +0000 |
---|---|---|
committer | Peter Stephenson <pws@zsh.org> | 2015-12-04 10:44:33 +0000 |
commit | e40a14c5e4f24f45446e47176c699c586c46d624 (patch) | |
tree | b7b7b720c372e0cc5726982d2c138ed8cdbab5ac /Src/exec.c | |
parent | 04479a56e09b92b893230c715e434f95e77c09b5 (diff) | |
download | zsh-e40a14c5e4f24f45446e47176c699c586c46d624.tar.gz zsh-e40a14c5e4f24f45446e47176c699c586c46d624.tar.xz zsh-e40a14c5e4f24f45446e47176c699c586c46d624.zip |
37202: suppress WARN_CREATE_GLOBAL warnings after a fork
Diffstat (limited to 'Src/exec.c')
-rw-r--r-- | Src/exec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Src/exec.c b/Src/exec.c index fc31c6be0..acc867c77 100644 --- a/Src/exec.c +++ b/Src/exec.c @@ -2264,7 +2264,7 @@ addvars(Estate state, Wordcode pc, int addflags) * is implicitly scoped. */ flags = (!(addflags & ADDVAR_RESTORE) && - locallevel > 0 && isset(WARNCREATEGLOBAL)) ? + locallevel > forklevel && isset(WARNCREATEGLOBAL)) ? ASSPM_WARN_CREATE : 0; xtr = isset(XTRACE); if (xtr) { |