summaryrefslogtreecommitdiff
path: root/src/utils
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils')
-rw-r--r--src/utils/gettexthelper.cpp7
-rw-r--r--src/utils/stringutils.cpp2
2 files changed, 3 insertions, 6 deletions
diff --git a/src/utils/gettexthelper.cpp b/src/utils/gettexthelper.cpp
index 422c7d36f..9b8f16352 100644
--- a/src/utils/gettexthelper.cpp
+++ b/src/utils/gettexthelper.cpp
@@ -73,11 +73,8 @@ static std::string setLangEnv()
putenv(const_cast<char*>(("LANGUAGE=" + lang).c_str()));
#else // WIN32
- if (!lang.empty())
- {
- setEnv("LANG", lang.c_str());
- setEnv("LANGUAGE", lang.c_str());
- }
+ setEnv("LANG", lang.c_str());
+ setEnv("LANGUAGE", lang.c_str());
#endif // WIN32
}
diff --git a/src/utils/stringutils.cpp b/src/utils/stringutils.cpp
index c91dfd932..6ec7817ed 100644
--- a/src/utils/stringutils.cpp
+++ b/src/utils/stringutils.cpp
@@ -588,7 +588,7 @@ std::string combineDye3(std::string file,
}
return file.append("|").append(str);
}
- if (dye.empty() || file.empty())
+ if (file.empty())
return file;
return file.append("|").append(dye);
}