[PATCH] lib/message.cc: fix Coverity finding (use after free)

David Bremner david at tethera.net
Sat Mar 18 17:14:26 PDT 2017


Tomi Ollila <tomi.ollila at iki.fi> 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


More information about the notmuch mailing list