diff options
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) { |