]> granicus.if.org Git - mutt/commitdiff
Don't use freed ctx.path when updating utime of target mailbox in save-message.
authorBrendan Cully <brendan@kublai.com>
Tue, 23 Feb 2010 20:42:25 +0000 (12:42 -0800)
committerBrendan Cully <brendan@kublai.com>
Tue, 23 Feb 2010 20:42:25 +0000 (12:42 -0800)
Thanks to Sean Boudreau for the bug report.

commands.c

index 9ce897b5d4cabdf83e1038310ab9649c10f5bd78..ebd0ca5044b29ea38690a165227aec2377369480 100644 (file)
@@ -863,7 +863,7 @@ int mutt_save_message (HEADER *h, int delete,
     mx_close_mailbox (&ctx, NULL);
 
     if (need_buffy_cleanup)
-      mutt_buffy_cleanup (ctx.path, &st);
+      mutt_buffy_cleanup (buf, &st);
 
     mutt_clear_error ();
     return (0);