]> git.ipfire.org Git - thirdparty/bash.git/commitdiff
Bash-4.3 patch 29
authorChet Ramey <chet.ramey@case.edu>
Fri, 3 Oct 2014 02:50:19 +0000 (22:50 -0400)
committerChet Ramey <chet.ramey@case.edu>
Fri, 3 Oct 2014 02:50:19 +0000 (22:50 -0400)
copy_cmd.c
make_cmd.c
patchlevel.h

index 911d34f3daf1718cc6595fe98294024b729396e0..826e0c3a4650b1833888176d50c93d62a2ce9d4e 100644 (file)
@@ -126,7 +126,7 @@ copy_redirect (redirect)
     {
     case r_reading_until:
     case r_deblank_reading_until:
-      new_redirect->here_doc_eof = savestring (redirect->here_doc_eof);
+      new_redirect->here_doc_eof = redirect->here_doc_eof ? savestring (redirect->here_doc_eof) : 0;
       /*FALLTHROUGH*/
     case r_reading_string:
     case r_appending_to:
index 3bc5408576da61634014e4db14ff850a53b94845..b01d08457e4a4852a972220803eb8e034678a9cf 100644 (file)
@@ -692,6 +692,7 @@ make_redirection (source, instruction, dest_and_filename, flags)
   /* First do the common cases. */
   temp->redirector = source;
   temp->redirectee = dest_and_filename;
+  temp->here_doc_eof = 0;
   temp->instruction = instruction;
   temp->flags = 0;
   temp->rflags = flags;
index 96c13b39e948a151ea8fbfe901ed0513bfcb50f0..b6a4c574afcd575597cc36051bb4d392f5e7b281 100644 (file)
@@ -25,6 +25,6 @@
    regexp `^#define[   ]*PATCHLEVEL', since that's what support/mkversion.sh
    looks for to find the patch level (for the sccs version string). */
 
-#define PATCHLEVEL 28
+#define PATCHLEVEL 29
 
 #endif /* _PATCHLEVEL_H_ */