X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=lib%2Fmessage.cc;h=36a07a8890b0dd52a092fc8c88434676cc4193be;hp=007f11715eb8f97d495f0ed68e1180e9fcc86452;hb=06adc276682d1d5f73d78df2e898ad4191eb4499;hpb=5a69aa14748162429c43ad5ff3d8b35779fff0d4 diff --git a/lib/message.cc b/lib/message.cc index 007f1171..36a07a88 100644 --- a/lib/message.cc +++ b/lib/message.cc @@ -870,9 +870,9 @@ _notmuch_message_ensure_filename_list (notmuch_message_t *message) * * It would be nice to do the upgrade of the document directly * here, but the database is likely open in read-only mode. */ - const char *data; - data = message->doc.get_data ().c_str (); + std::string datastr = message->doc.get_data (); + const char *data = datastr.c_str (); if (data == NULL) INTERNAL_ERROR ("message with no filename");