]> granicus.if.org Git - mutt/commitdiff
Fix flags if mutt_get_postponed() has no messages.
authorKevin McCarthy <kevin@8t8.us>
Thu, 20 Dec 2018 02:48:04 +0000 (18:48 -0800)
committerKevin McCarthy <kevin@8t8.us>
Thu, 20 Dec 2018 02:48:04 +0000 (18:48 -0800)
Flags needs to be reset so memory cleanup is done at the end.

send.c

diff --git a/send.c b/send.c
index 5f4703c20df832e850e645677888750d462757f0..975425c9fea1a3f1347a44a811efe162e456f64c 100644 (file)
--- a/send.c
+++ b/send.c
@@ -1466,7 +1466,10 @@ ci_send_message (int flags,              /* send mode */
     if (flags == SENDPOSTPONED)
     {
       if ((flags = mutt_get_postponed (ctx, msg, &cur, fcc, sizeof (fcc))) < 0)
+      {
+        flags = SENDPOSTPONED;
        goto cleanup;
+      }
     }
 
     if (flags & (SENDPOSTPONED|SENDRESEND))