Tomi Ollila writes:
> - const char *data;
>
> - data = message->doc.get_data ().c_str ();
> + std::string datastr = message->doc.get_data ();
> + const char *data = datastr.c_str ();
>
Pushed,
d
___
notmuch mailing list
notmuch@not
The object where pointer to `data` was received was deleted before
it was used in _notmuch_string_list_append().
Relevant Coverity messages follow:
3: extract
Assigning: data = std::__cxx11::string(message->doc.()).c_str(),
which extracts wrapped state from temporary of type std::__cxx11::string.