Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix bug introduced by me (Zeno)
  • Loading branch information
Zeno- authored and RealBadAngel committed Oct 29, 2014
1 parent dd4c21c commit 6c9bbb0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/util/string.h
Expand Up @@ -125,9 +125,10 @@ inline std::vector<std::string> str_split(const std::string &str, char delimiter

inline std::string lowercase(const std::string &s)
{
std::string s2;
std::string s2 = s;
for(size_t i = 0; i < s.size(); i++)
s2[i] = tolower(s.at(i));
if (isupper(s2.at(i)))
s2[i] = tolower(s2.at(i));
return s2;
}

Expand Down

0 comments on commit 6c9bbb0

Please sign in to comment.