summaryrefslogtreecommitdiff
path: root/package/source
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2011-02-06 23:16:23 +0100
committerJulien Nabet <serval2412@yahoo.fr>2011-02-06 23:16:23 +0100
commitba11d549dca2a04a220b59aaf9223ee8f7043da0 (patch)
treea9f53b990de42784a72798c7e479b603a0880b04 /package/source
parentf6ae27e3f17a1cce5040d8e1a93992879a421fcf (diff)
Some cppcheck cleaning
Diffstat (limited to 'package/source')
-rw-r--r--package/source/zipapi/XUnbufferedStream.cxx4
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;