summary refs log tree commit diff
path: root/Src
diff options
context:
space:
mode:
authorPeter Stephenson <pws@zsh.org>2017-01-25 09:35:30 +0000
committerPeter Stephenson <pws@zsh.org>2017-01-25 09:35:30 +0000
commitb3637caa90e30a630fb7e677c54d5f0a1b27985d (patch)
tree6c3cb661e0fe6c22e7105254ea02b3e62661b3b9 /Src
parent2854a67e09748a2e6f4e1d8a73bc463bad4cbd4e (diff)
downloadzsh-b3637caa90e30a630fb7e677c54d5f0a1b27985d.tar.gz
zsh-b3637caa90e30a630fb7e677c54d5f0a1b27985d.tar.xz
zsh-b3637caa90e30a630fb7e677c54d5f0a1b27985d.zip
40413: WARN_NESTED_VAR subscripted variable fix.
No warning needed on paramter that's created temporarily to
help assignment.
Diffstat (limited to 'Src')
-rw-r--r--Src/params.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/Src/params.c b/Src/params.c
index ebdd25225..c38f2e001 100644
--- a/Src/params.c
+++ b/Src/params.c
@@ -2926,7 +2926,11 @@ assignsparam(char *s, char *val, int flags)
 		unqueue_signals();
 		return NULL;
 	    }
-	    flags &= ~ASSPM_WARN_CREATE;
+	    /*
+	     * Parameter defined here is a temporary bogus one.
+	     * Don't warn about anything.
+	     */
+	    flags &= ~ASSPM_WARN;
 	}
 	*ss = '[';
 	v = NULL;