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 af6d2cc90b
commit 3118aa7ab6

View file

@ -528,6 +528,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);