diff --git a/source/third_party/tinygettext/src/dictionary.cpp b/source/third_party/tinygettext/src/dictionary.cpp index 2f1875c096..620af6cd86 100644 --- a/source/third_party/tinygettext/src/dictionary.cpp +++ b/source/third_party/tinygettext/src/dictionary.cpp @@ -165,11 +165,11 @@ void Dictionary::add_translation(const std::string& msgid, const std::string& msgstr) { std::vector& vec = entries[msgid]; - if (vec.empty() || msgstr.compare(vec[0]) == 0) + if (vec.empty()) { vec.push_back(msgstr); } - else + else if (vec[0] != msgstr) { log_warning << "collision in add_translation: '" << msgid << "' -> '" << msgstr << "' vs '" << vec[0] << "'" << std::endl;