summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-06-25 20:39:37 +0100
committerCaolán McNamara <caolanm@redhat.com>2014-06-26 16:29:12 +0100
commitf97009d79fab5a6264ffb2f59d40b9e3d83ba41d (patch)
tree5201cdfbf844e40a780f54da651e2e1a65fa6a50 /tools
parentbe9d65bb5f5a83c19eec02a037b8f808de70ecb8 (diff)
clang: Assigned value is garbage or undefined
Change-Id: Ida7a6ab077e1f0436f8b775956d30c82c4ad5338
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 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;