lib/message.cc: stale pointer bug (v3)
authorVladimir Marek <vlmarek@volny.cz>
Thu, 2 May 2013 14:31:42 +0000 (16:31 +0200)
committerDavid Bremner <bremner@debian.org>
Sat, 4 May 2013 00:17:56 +0000 (21:17 -0300)
commit51b073c6f27f4439b2d003df1be1177365e555fe
treeb6f8e88d49f7b5f0c30d60a9aa986fef414b583f
parent8bee3c417c44afdf04fda7a3495d598a99f6d9bc
lib/message.cc: stale pointer bug (v3)

Xapian::TermIterator::operator* returns std::string which is destroyed
as soon as (*i).c_str() finishes. The remembered pointer 'term' then
references invalid memory.

Signed-off-by: Vladimir Marek <vlmarek@volny.cz>
lib/message.cc