X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=lib%2Fdatabase.cc;h=2b36a5c9d5d2f892cded55cbda0b44ad665b12ba;hp=563580f1cd117a10b059a9018de3e01cb381fc35;hb=24a25ffba98c1c34d92cefb9e23dd44e3be76126;hpb=9b1c6c250b2413b987ffeccbf1cd69cb1e8b934d diff --git a/lib/database.cc b/lib/database.cc index 563580f1..2b36a5c9 100644 --- a/lib/database.cc +++ b/lib/database.cc @@ -796,7 +796,7 @@ _notmuch_database_link_message_to_children (notmuch_database_t *notmuch, /* Given a (mostly empty) 'message' and its corresponding * 'message_file' link it to existing threads in the database. * - * We first looke at 'message_file' and its link-relevant headers + * We first look at 'message_file' and its link-relevant headers * (References and In-Reply-To) for message IDs. We also look in the * database for existing message that reference 'message'.p * @@ -911,9 +911,7 @@ notmuch_database_add_message (notmuch_database_t *notmuch, * (which may or may not reference an existing document in the * database). */ - /* Use NULL for owner since we want to free this locally. */ - message = _notmuch_message_create_for_message_id (NULL, - notmuch, + message = _notmuch_message_create_for_message_id (notmuch, message_id, &private_status);