diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-01-05 11:33:31 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-01-05 11:44:52 +0000 |
commit | bd03af56780aae3159dac8e40ee937824be3e906 (patch) | |
tree | 3f30a4320ecc23f4212e1cf12d7b8cdc7325d00a /tools | |
parent | 8130714148d58dd2bf1ef12dcc6dd6d5838be0d1 (diff) |
valgrind: Conditional jump or move depends on uninitialised value
Change-Id: Id5125052b49e322cdfa2c7d55d68e8a7a512965c
Diffstat (limited to 'tools')
-rw-r--r-- | tools/source/stream/stream.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/source/stream/stream.cxx b/tools/source/stream/stream.cxx index db4a39811671..7c5deacb4807 100644 --- a/tools/source/stream/stream.cxx +++ b/tools/source/stream/stream.cxx @@ -811,7 +811,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 ) @@ -848,7 +848,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) |