clang: Assigned value is garbage or undefined

Change-Id: Ida7a6ab077e1f0436f8b775956d30c82c4ad5338
This commit is contained in:
Caolán McNamara
2014-06-25 20:39:37 +01:00
parent be9d65bb5f
commit f97009d79f

View File

@@ -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;