summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2015-01-05 11:33:31 +0000
committerAndras Timar <andras.timar@collabora.com>2015-01-08 15:09:25 +0100
commitedbd022a51813eab6dbafeb500b650bbf0224462 (patch)
treee7251e8dafb0f22b735b2eff8825b69c59415230 /tools
parenta25510e8a7fb7736bf530abfe2dba28738b65dde (diff)
valgrind: Conditional jump or move depends on uninitialised value
Change-Id: Id5125052b49e322cdfa2c7d55d68e8a7a512965c (cherry picked from commit bd03af56780aae3159dac8e40ee937824be3e906) (cherry picked from commit a623b0df102aa4530cd46322f03806dfaf267f6e)
Diffstat (limited to 'tools')
-rw-r--r--tools/source/stream/stream.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/source/stream/stream.cxx b/tools/source/stream/stream.cxx
index e320f6f2d40f..00cd17e03b61 100644
--- a/tools/source/stream/stream.cxx
+++ b/tools/source/stream/stream.cxx
@@ -810,7 +810,7 @@ bool SvStream::StartReadingUnicodeText( rtl_TextEncoding eReadBomCharSet )
return true; // nothing to read
bool bTryUtf8 = false;
- sal_uInt16 nFlag;
+ sal_uInt16 nFlag(0);
sal_sSize nBack = sizeof(nFlag);
this->ReadUInt16( nFlag );
switch ( nFlag )
@@ -847,7 +847,7 @@ bool SvStream::StartReadingUnicodeText( rtl_TextEncoding eReadBomCharSet )
}
if (bTryUtf8)
{
- unsigned char nChar;
+ unsigned char nChar(0);
nBack += sizeof(nChar);
this->ReadUChar( nChar );
if (nChar == 0xbf)