]> git.ipfire.org Git - thirdparty/bash.git/blobdiff - subst.c
Bash-4.4 patch 4
[thirdparty/bash.git] / subst.c
diff --git a/subst.c b/subst.c
index 4d498ef3646222e3ead4a56b3be1cc25f3e6edbd..298187d2f02c38f0763858a991408efcb12e41b5 100644 (file)
--- a/subst.c
+++ b/subst.c
@@ -5808,10 +5808,7 @@ process_substitute (string, open_for_read_in_child)
     {
 #if defined (JOB_CONTROL)
       if (last_procsub_child)
-       {
-         discard_pipeline (last_procsub_child);
-         last_procsub_child = (PROCESS *)NULL;
-       }
+       discard_last_procsub_child ();
       last_procsub_child = restore_pipeline (0);
 #endif