Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

CharsetConverter: fix: don't flip empty lines

  • Loading branch information...
commit d273c32467651741033549ff2e4700232ed1a066 1 parent 5aef1c5
@Karlson2k Karlson2k authored
Showing with 2 additions and 0 deletions.
  1. +2 −0  xbmc/utils/CharsetConverter.cpp
View
2  xbmc/utils/CharsetConverter.cpp
@@ -299,6 +299,8 @@ static bool logicalToVisualBiDi(const std::string& stringSrc, std::string& strin
for (size_t i = 0; i < numLines; i++)
{
int sourceLen = lines[i].length();
+ if (sourceLen == 0)
+ continue;
// Convert from the selected charset to Unicode
FriBidiChar* logical = (FriBidiChar*) malloc((sourceLen + 1) * sizeof(FriBidiChar));
Please sign in to comment.
Something went wrong with that request. Please try again.