about summary refs log tree commit diff
path: root/Src/exec.c
diff options
context:
space:
mode:
authorPeter Stephenson <pws@zsh.org>2015-12-04 10:44:33 +0000
committerPeter Stephenson <pws@zsh.org>2015-12-04 10:44:33 +0000
commite40a14c5e4f24f45446e47176c699c586c46d624 (patch)
treeb7b7b720c372e0cc5726982d2c138ed8cdbab5ac /Src/exec.c
parent04479a56e09b92b893230c715e434f95e77c09b5 (diff)
downloadzsh-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.c2
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) {