Added the mutex for the ci_search function

This commit is contained in:
Vlad Drozdov 2019-01-13 13:32:29 +08:00 committed by Charles Dang
parent 9b0d036846
commit 2303416fa5

View file

@ -517,6 +517,7 @@ std::string strftime(const std::string& format, const std::tm* time)
bool ci_search(const std::string& s1, const std::string& s2)
{
std::lock_guard<std::mutex> lock(get_mutex());
const std::locale& locale = get_manager().get_locale();
std::string ls1 = bl::to_lower(s1, locale);