Fixed segfault.
Reference should never be used on the result of a ternary operator.
This commit is contained in:
parent
08a6860c95
commit
7a90bdf220
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue