X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;ds=sidebyside;f=copy_cmd.c;h=826e0c3a4650b1833888176d50c93d62a2ce9d4e;hb=HEAD;hp=911d34f3daf1718cc6595fe98294024b729396e0;hpb=0001803f0b9523c94fa2ede48eaecb047fef4524;p=platform%2Fupstream%2Fbash.git diff --git a/copy_cmd.c b/copy_cmd.c index 911d34f..826e0c3 100644 --- a/copy_cmd.c +++ b/copy_cmd.c @@ -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: