Kaydet (Commit) bd03af56 authored tarafından Caolán McNamara's avatar Caolán McNamara

valgrind: Conditional jump or move depends on uninitialised value

Change-Id: Id5125052b49e322cdfa2c7d55d68e8a7a512965c
üst 81307141
...@@ -811,7 +811,7 @@ bool SvStream::StartReadingUnicodeText( rtl_TextEncoding eReadBomCharSet ) ...@@ -811,7 +811,7 @@ bool SvStream::StartReadingUnicodeText( rtl_TextEncoding eReadBomCharSet )
return true; // nothing to read return true; // nothing to read
bool bTryUtf8 = false; bool bTryUtf8 = false;
sal_uInt16 nFlag; sal_uInt16 nFlag(0);
sal_sSize nBack = sizeof(nFlag); sal_sSize nBack = sizeof(nFlag);
this->ReadUInt16( nFlag ); this->ReadUInt16( nFlag );
switch ( nFlag ) switch ( nFlag )
...@@ -848,7 +848,7 @@ bool SvStream::StartReadingUnicodeText( rtl_TextEncoding eReadBomCharSet ) ...@@ -848,7 +848,7 @@ bool SvStream::StartReadingUnicodeText( rtl_TextEncoding eReadBomCharSet )
} }
if (bTryUtf8) if (bTryUtf8)
{ {
unsigned char nChar; unsigned char nChar(0);
nBack += sizeof(nChar); nBack += sizeof(nChar);
this->ReadUChar( nChar ); this->ReadUChar( nChar );
if (nChar == 0xbf) if (nChar == 0xbf)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment