X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=message.cc;h=dd73d13c97fe06332850798f24de7d2012bf80cb;hp=338d953f2dfb744f8b98c677ab1cf5c711a1f823;hb=84480738a5e225c145eeaac5c39bb858f6592e95;hpb=2745575b9be7f94685fac6143d7bb64737550c10 diff --git a/message.cc b/message.cc index 338d953f..dd73d13c 100644 --- a/message.cc +++ b/message.cc @@ -190,14 +190,14 @@ notmuch_thread_ids_t * notmuch_message_get_thread_ids (notmuch_message_t *message) { notmuch_thread_ids_t *thread_ids; - const char *id_str; + std::string id_str; thread_ids = talloc (message, notmuch_thread_ids_t); if (unlikely (thread_ids == NULL)) return NULL; - id_str = message->doc.get_value (NOTMUCH_VALUE_THREAD).c_str (); - thread_ids->next = talloc_strdup (message, id_str); + id_str = message->doc.get_value (NOTMUCH_VALUE_THREAD); + thread_ids->next = talloc_strdup (message, id_str.c_str ()); /* Initialize thread_ids->current and terminate first ID. */ notmuch_thread_ids_advance (thread_ids);