]> granicus.if.org Git - mutt/commit
Fix parent_hdr usage in mutt_attach_reply(). (see #3728)
authorKevin McCarthy <kevin@8t8.us>
Fri, 11 Aug 2017 16:04:48 +0000 (09:04 -0700)
committerKevin McCarthy <kevin@8t8.us>
Fri, 11 Aug 2017 16:04:48 +0000 (09:04 -0700)
commitda7566ffb827ece3edb89c7b295a0e7d3a82c607
tree0e15e73aa47d2f11ef0105126b269ce1a11d725e
parentfaabd6210348dd5ae8b3dc5f788ad694b342f714
Fix parent_hdr usage in mutt_attach_reply(). (see #3728)

If the selected attachments are not messages and no (common) parent is
found, parent_hdr is set to the passed in hdr.  In that case, parent
will still be NULL, but parent_hdr and parent_fp will be set.

Change the test to parent_hdr being NULL, not parent, to check for
this case.
recvcmd.c