ltog/osmi-addresses

Different meanings in AltTagList.get_value_by_key() functions?

Closed this issue · 1 comments

ltog commented

The meaning in lines 44 and 52 is not the same?

if (m_list.find(key) == m_list.end()) {
return std::string("");
} else {
return m_list.find(key)->second;
}
}
std::string get_value_by_key(char* key) {
if (!key) {

ltog commented

Using get_value_by_key(const char* key) leads to segfaults when querying non-existing keys.