Fixed segfault.

Reference should never be used on the result of a ternary operator.
This commit is contained in:
Guillaume Melquiond 2009-04-13 14:21:56 +00:00
parent 08a6860c95
commit 7a90bdf220

View file

@ -882,7 +882,7 @@ private:
for(std::vector<unit>::const_iterator u = recall_list.begin(); u != recall_list.end(); ++u) {
std::stringstream option, option_to_filter;
const std::string& name = u->name().empty() ? "-" : u->name();
std::string name = u->name().empty() ? "-" : u->name();
option << IMAGE_PREFIX << u->absolute_image();
#ifndef LOW_MEM