Skip to content

Commit

Permalink
Fixed|libcore: Decoding characters at the end of string
Browse files Browse the repository at this point in the history
  • Loading branch information
skyjake committed Sep 1, 2019
1 parent 98c1b7a commit 6d317f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doomsday/libs/core/src/data/string.cpp
Expand Up @@ -1125,7 +1125,7 @@ Char mb_iterator::operator*() const

Char mb_iterator::decode() const
{
wchar_t ch;
wchar_t ch = 0;
const char *end = i;
for (int j = 0; *end && j < MB_CUR_MAX; ++j, ++end) {}
curCharLen = std::mbrtowc(&ch, i, end - i, &mb);
Expand Down

0 comments on commit 6d317f4

Please sign in to comment.