lib: another iterator-temporary/stale-pointer bug
authorDavid Bremner <david@tethera.net>
Sun, 28 Dec 2014 10:45:08 +0000 (11:45 +0100)
committerDavid Bremner <david@tethera.net>
Fri, 2 Jan 2015 16:10:37 +0000 (17:10 +0100)
commit3d978a0d61df072de7e4fd52120f3448cf8e9df6
tree9c96795f4349e8840d51d4e1172f3fb75298f09d
parent2dfbb7598b6869511c5d654221664bc9b2230413
lib: another iterator-temporary/stale-pointer bug

Tamas Szakaly points out [1] that the bug fixed in 51b073c still
exists in at least one place. This change follows the suggestion of
[2] and creates a block scope temporary std::string to avoid the rules
of iterators temporaries.

[1]: id:20141226113755.GA64154@pamparam
[2]: id:20141226230655.GA41992@pamparam
lib/message.cc