Skip to content

Commit

Permalink
Added the mutex for the ci_search function
Browse files Browse the repository at this point in the history
  • Loading branch information
dvladf authored and Vultraz committed Jan 27, 2019
1 parent 9b0d036 commit 2303416
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/gettext.cpp
Expand Up @@ -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);
Expand Down

0 comments on commit 2303416

Please sign in to comment.