]> git.notmuchmail.org Git - notmuch/blobdiff - lib/database.cc
Fix broken commit.
[notmuch] / lib / database.cc
index 563580f1cd117a10b059a9018de3e01cb381fc35..3c8d626e93d66aeabc2715a4889aacfe7bffd88a 100644 (file)
@@ -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,8 +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,
+       message = _notmuch_message_create_for_message_id (notmuch,
                                                          notmuch,
                                                          message_id,
                                                          &private_status);