summary refs log tree commit diff
path: root/Src/subst.c
diff options
context:
space:
mode:
authorAndrew Waldron <a.a.w@gmx.us>2014-04-18 07:30:36 -0700
committerBarton E. Schaefer <schaefer@zsh.org>2014-04-18 07:30:36 -0700
commit8189e12312ede991827efc6683b7ce8463deb0bf (patch)
tree04d1a5c5a2ebc37edf87158fbc4d983578cbc0ed /Src/subst.c
parentd9935915b73082c70d543ea098ecea9e95068659 (diff)
downloadzsh-8189e12312ede991827efc6683b7ce8463deb0bf.tar.gz
zsh-8189e12312ede991827efc6683b7ce8463deb0bf.tar.xz
zsh-8189e12312ede991827efc6683b7ce8463deb0bf.zip
32552 (updated by 32560): fix segfault when using process substitution in anonymous function argument list
Also disallow process substitution in function name position.
Diffstat (limited to 'Src/subst.c')
-rw-r--r--Src/subst.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Src/subst.c b/Src/subst.c
index cc5df3fba..471350219 100644
--- a/Src/subst.c
+++ b/Src/subst.c
@@ -169,7 +169,7 @@ stringsubst(LinkList list, LinkNode node, int pf_flags, int asssub)
 	    if (errflag)
 		return NULL;
 	    if (!subst)
-		subst = "";
+		rest = subst = "";
 
 	    sublen = strlen(subst);
 	    restlen = strlen(rest);