summaryrefslogtreecommitdiff
path: root/onlineupdate/source/update/updater/archivereader.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'onlineupdate/source/update/updater/archivereader.cxx')
-rw-r--r--onlineupdate/source/update/updater/archivereader.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/onlineupdate/source/update/updater/archivereader.cxx b/onlineupdate/source/update/updater/archivereader.cxx
index 4629d330e5cc..a7884df2d8de 100644
--- a/onlineupdate/source/update/updater/archivereader.cxx
+++ b/onlineupdate/source/update/updater/archivereader.cxx
@@ -273,7 +273,7 @@ ArchiveReader::ExtractItemToStream(const MarItem *item, FILE *fp)
/* decompress the data chunk by chunk */
bz_stream strm;
- int offset, inlen, outlen, ret = OK;
+ int offset, inlen, ret = OK;
memset(&strm, 0, sizeof(strm));
if (BZ2_bzDecompressInit(&strm, 0, 0) != BZ_OK)
@@ -304,7 +304,7 @@ ArchiveReader::ExtractItemToStream(const MarItem *item, FILE *fp)
break;
}
- outlen = outbuf_size - strm.avail_out;
+ int outlen = outbuf_size - strm.avail_out;
if (outlen) {
if (fwrite(outbuf, outlen, 1, fp) != 1) {
ret = WRITE_ERROR_EXTRACT;