about summary refs log tree commit diff
path: root/Src/subst.c
diff options
context:
space:
mode:
authorBarton E. Schaefer <schaefer@zsh.org>2015-01-06 09:20:43 -0800
committerBarton E. Schaefer <schaefer@zsh.org>2015-01-06 09:34:12 -0800
commit7e7449592a6e2f10857e6a5e57a17d05e773b554 (patch)
tree3316d725f4ff35f1069f44a33467facce939f317 /Src/subst.c
parentf9cc5a6e562842f15ce6e576553f3e0e37e51783 (diff)
downloadzsh-7e7449592a6e2f10857e6a5e57a17d05e773b554.tar.gz
zsh-7e7449592a6e2f10857e6a5e57a17d05e773b554.tar.xz
zsh-7e7449592a6e2f10857e6a5e57a17d05e773b554.zip
34103: fix ancient double-quote handling thinko in subst_parse_str()
This doesn't seem to have mattered, but must in some obscure cases
Diffstat (limited to 'Src/subst.c')
-rw-r--r--Src/subst.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/Src/subst.c b/Src/subst.c
index 4100803e7..610d71ee2 100644
--- a/Src/subst.c
+++ b/Src/subst.c
@@ -1333,14 +1333,16 @@ subst_parse_str(char **sp, int single, int err)
 	if (!single) {
             int qt = 0;
 
-	    for (; *s; s++)
+	    for (; *s; s++) {
 		if (!qt) {
 		    if (*s == Qstring)
 			*s = String;
 		    else if (*s == Qtick)
 			*s = Tick;
-                } else if (*s == Dnull)
+                }
+		if (*s == Dnull)
                     qt = !qt;
+	    }
 	}
 	return 0;
     }