Skip to content
Permalink
Browse files

Make minor style change(unescape_string())

  • Loading branch information
Zeno- committed Jan 16, 2015
1 parent e5b6367 commit 5481e38d0b505277615f8b76cb90f0742a1dfe6f
Showing with 4 additions and 3 deletions.
  1. +4 −3 src/util/string.h
@@ -406,10 +406,11 @@ inline std::basic_string<T> unescape_string(std::basic_string<T> &s)
std::basic_string<T> res;

for (size_t i = 0; i < s.length(); i++) {
if (s[i] == '\\')
if (s[i] == '\\') {
i++;
if (i >= s.length())
break;
if (i >= s.length())
break;
}
res += s[i];
}

0 comments on commit 5481e38

Please sign in to comment.