aboutsummaryrefslogtreecommitdiff
path: root/lib/message.cc
diff options
context:
space:
mode:
authorDavid Bremner <david@tethera.net>2014-12-26 18:34:49 +0100
committerDavid Bremner <david@tethera.net>2015-03-29 00:34:15 +0100
commit9d192da683b0656e37fc8d69c69698ca605926b3 (patch)
tree83434ee169901d44821ce11e406d6363cfe1afc8 /lib/message.cc
parent736ac26407914425a9c94e86616225292cf716dd (diff)
lib: eliminate fprintf from _notmuch_message_file_open
You may wonder why _notmuch_message_file_open_ctx has two parameters. This is because we need sometime to use a ctx which is a notmuch_message_t. While we could get the database from this, there is no easy way in C to tell type we are getting.
Diffstat (limited to 'lib/message.cc')
-rw-r--r--lib/message.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/message.cc b/lib/message.cc
index a8ca9884..5bc7aff1 100644
--- a/lib/message.cc
+++ b/lib/message.cc
@@ -437,7 +437,8 @@ _notmuch_message_ensure_message_file (notmuch_message_t *message)
if (unlikely (filename == NULL))
return;
- message->message_file = _notmuch_message_file_open_ctx (message, filename);
+ message->message_file = _notmuch_message_file_open_ctx (
+ _notmuch_message_database (message), message, filename);
}
const char *