]> granicus.if.org Git - neomutt/commitdiff
Fix a segmentation fault when replying to multiple
authorThomas Roessler <roessler@does-not-exist.org>
Mon, 4 Sep 2000 10:45:36 +0000 (10:45 +0000)
committerThomas Roessler <roessler@does-not-exist.org>
Mon, 4 Sep 2000 10:45:36 +0000 (10:45 +0000)
message/rfc822-type attachments.  Noted by David Champion.

recvcmd.c

index 52f0e03e04de65ef1c3da11ba9948ae78daf457e..3e046753edc5ed105454906932ff2c11fc30e967 100644 (file)
--- a/recvcmd.c
+++ b/recvcmd.c
@@ -789,7 +789,7 @@ void mutt_attach_reply (FILE * fp, HEADER * hdr,
   tmphdr->env = mutt_new_envelope ();
 
   if (attach_reply_envelope_defaults (tmphdr->env, idx, idxlen, 
-                                     parent ? parent : cur->hdr, flags) == -1)
+                                     parent ? parent : (cur ? cur->hdr : NULL), flags) == -1)
   {
     mutt_free_header (&tmphdr);
     return;