diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2011-02-06 23:16:23 +0100 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2011-02-06 23:16:23 +0100 |
commit | ba11d549dca2a04a220b59aaf9223ee8f7043da0 (patch) | |
tree | a9f53b990de42784a72798c7e479b603a0880b04 /package/source/zipapi/XUnbufferedStream.cxx | |
parent | f6ae27e3f17a1cce5040d8e1a93992879a421fcf (diff) |
Some cppcheck cleaning
Diffstat (limited to 'package/source/zipapi/XUnbufferedStream.cxx')
-rw-r--r-- | package/source/zipapi/XUnbufferedStream.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/package/source/zipapi/XUnbufferedStream.cxx b/package/source/zipapi/XUnbufferedStream.cxx index 35e9dfe6bdb1..1cad883f972a 100644 --- a/package/source/zipapi/XUnbufferedStream.cxx +++ b/package/source/zipapi/XUnbufferedStream.cxx @@ -169,10 +169,12 @@ sal_Int32 SAL_CALL XUnbufferedStream::readBytes( Sequence< sal_Int8 >& aData, sa if ( mnMyCurrent + nRequestedBytes > mnZipSize + maHeader.getLength() ) nRequestedBytes = static_cast < sal_Int32 > ( mnZipSize + maHeader.getLength() - mnMyCurrent ); - sal_Int32 nRead = 0, nLastRead = 0, nTotal = 0; + sal_Int32 nTotal = 0; aData.realloc ( nRequestedBytes ); if ( nRequestedBytes ) { + sal_Int32 nRead = 0; + sal_Int32 nLastRead = 0; if ( mbRawStream ) { sal_Int64 nDiff = mnZipEnd - mnZipCurrent; |