Make minor style change(unescape_string())

This commit is contained in:
Craig Robbins 2015-01-16 21:05:44 +10:00
parent e5b636712c
commit 5481e38d0b

@ -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];
}