X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=lib%2Fdatabase.cc;fp=lib%2Fdatabase.cc;h=386dcd17adc4d0a91ab5eb10479907b254d32187;hp=8016c4df3d167c2c6fd30dbbe5e3ba66dd3fbffc;hb=e0e8586fc72763571f9eafeb831c7bc79a15273d;hpb=2c5eed16b3b0bff9b6f488d3949ebdb62e8d1c35 diff --git a/lib/database.cc b/lib/database.cc index 8016c4df..386dcd17 100644 --- a/lib/database.cc +++ b/lib/database.cc @@ -644,7 +644,7 @@ parse_references (void *ctx, ref = _parse_message_id (ctx, refs, &refs); if (ref && strcmp (ref, message_id)) { - g_hash_table_insert (hash, ref, NULL); + g_hash_table_add (hash, ref); last_ref = ref; } } @@ -653,7 +653,7 @@ parse_references (void *ctx, * reference to the database. We should avoid making a message * its own parent, thus the above check. */ - return last_ref; + return talloc_strdup(ctx, last_ref); } notmuch_status_t