about summary refs log tree commit diff
path: root/Src/lex.c
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2010-12-19 17:42:09 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2010-12-19 17:42:09 +0000
commitc8d07027c89d36a5a3981196a19d48a9286127a8 (patch)
tree47d284216cd29b7f72abe99db4c197b80a6cf4ab /Src/lex.c
parenta9b59ef8ecf6a5a2829448ed48a9c6135b9b15c6 (diff)
downloadzsh-c8d07027c89d36a5a3981196a19d48a9286127a8.tar.gz
zsh-c8d07027c89d36a5a3981196a19d48a9286127a8.tar.xz
zsh-c8d07027c89d36a5a3981196a19d48a9286127a8.zip
28537: fix word splitting on "((" when it was nested subshells rather than
arithmetic
Diffstat (limited to 'Src/lex.c')
-rw-r--r--Src/lex.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/Src/lex.c b/Src/lex.c
index 3d70c5bbf..2988b41cb 100644
--- a/Src/lex.c
+++ b/Src/lex.c
@@ -885,6 +885,11 @@ gettok(void)
 		    return DINPAR;
 
 		case 0:
+		    /*
+		     * Not math, so we don't return the contents
+		     * as a string in this case.
+		     */
+		    tokstr = NULL;
 		    return INPAR;
 
 		default: