diff options
author | Damien Riegel <damien.riegel@gmail.com> | 2016-06-18 12:41:42 -0700 |
---|---|---|
committer | Damien Riegel <damien.riegel@gmail.com> | 2016-06-18 12:41:42 -0700 |
commit | 6355572e185e8e90ba1f136d5e506d1179d26484 (patch) | |
tree | b39931527f378715ce4190e4ed02c8599c8e4b2c /copy.c | |
parent | 35c3ae29bfe4d97723e584323abab57808569c70 (diff) |
pass context in mx_close_message
The mx_close_message is one of the few mx_* functions that don't have a
context as parameter. To make them more consistent, pass the context.
Diffstat (limited to 'copy.c')
-rw-r--r-- | copy.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -692,7 +692,7 @@ mutt_copy_message (FILE *fpout, CONTEXT *src, HEADER *hdr, int flags, dprint (1, (debugfile, "_mutt_copy_message failed to detect EOF!\n")); r = -1; } - mx_close_message (&msg); + mx_close_message (src, &msg); return r; } @@ -728,7 +728,7 @@ _mutt_append_message (CONTEXT *dest, FILE *fpin, CONTEXT *src, HEADER *hdr, if (mx_commit_message (msg, dest) != 0) r = -1; - mx_close_message (&msg); + mx_close_message (dest, &msg); return r; } @@ -742,7 +742,7 @@ mutt_append_message (CONTEXT *dest, CONTEXT *src, HEADER *hdr, int cmflags, if ((msg = mx_open_message (src, hdr->msgno)) == NULL) return -1; r = _mutt_append_message (dest, msg->fp, src, hdr, hdr->content, cmflags, chflags); - mx_close_message (&msg); + mx_close_message (src, &msg); return r; } |