diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-06-25 20:39:37 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-06-26 16:29:12 +0100 |
commit | f97009d79fab5a6264ffb2f59d40b9e3d83ba41d (patch) | |
tree | 5201cdfbf844e40a780f54da651e2e1a65fa6a50 /tools/source | |
parent | be9d65bb5f5a83c19eec02a037b8f808de70ecb8 (diff) |
clang: Assigned value is garbage or undefined
Change-Id: Ida7a6ab077e1f0436f8b775956d30c82c4ad5338
Diffstat (limited to 'tools/source')
-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 01b21c7e0f43..b787e4f0ec3b 100644 --- a/tools/source/stream/stream.cxx +++ b/tools/source/stream/stream.cxx @@ -322,7 +322,7 @@ sal_Size SvStream::GetData( void* pData, sal_Size nSize ) if( !GetError() ) { DBG_ASSERT( xLockBytes.Is(), "pure virtual function" ); - sal_Size nRet; + sal_Size nRet(0); nError = xLockBytes->ReadAt(m_nActPos, pData, nSize, &nRet); m_nActPos += nRet; return nRet; @@ -335,7 +335,7 @@ sal_Size SvStream::PutData( const void* pData, sal_Size nSize ) if( !GetError() ) { DBG_ASSERT( xLockBytes.Is(), "pure virtual function" ); - sal_Size nRet; + sal_Size nRet(0); nError = xLockBytes->WriteAt(m_nActPos, pData, nSize, &nRet); m_nActPos += nRet; return nRet; |