about summary refs log tree commit diff
path: root/Src/subst.c
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2011-08-17 20:26:05 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2011-08-17 20:26:05 +0000
commit85b00bb0f7c60b9f4da5261633221cc200a0ab7f (patch)
tree598aa356ec9a9e703ecd3223c54690ec259e42c8 /Src/subst.c
parent815e52cdbf0a62bf795d5af8e7089aaca5709806 (diff)
downloadzsh-85b00bb0f7c60b9f4da5261633221cc200a0ab7f.tar.gz
zsh-85b00bb0f7c60b9f4da5261633221cc200a0ab7f.tar.xz
zsh-85b00bb0f7c60b9f4da5261633221cc200a0ab7f.zip
29703: crash when failing to parse process substitutions
Diffstat (limited to 'Src/subst.c')
-rw-r--r--Src/subst.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/Src/subst.c b/Src/subst.c
index 1b0097001..66e0bbe77 100644
--- a/Src/subst.c
+++ b/Src/subst.c
@@ -162,6 +162,8 @@ stringsubst(LinkList list, LinkNode node, int ssub, int asssub)
 		subst = getproc(str, &rest);	/* <(...) or >(...) */
 	    else
 		subst = getoutputfile(str, &rest);	/* =(...) */
+	    if (errflag)
+		return NULL;
 	    if (!subst)
 		subst = "";