Merge "Fix an uninitialized value warning." am: f943e138d7 am: d7a0b25d66

am: 570063f82d

Change-Id: Iefbe15d4bb48b9e92df1a2223cccec0a32000452
This commit is contained in:
Yunlian Jiang 2016-10-11 03:05:28 +00:00 committed by android-build-merger
commit 4fdd8f156d
1 changed files with 2 additions and 0 deletions

View File

@ -919,6 +919,7 @@ status_t ZipFile::compressFpToFp(FILE* dstFp, FILE* srcFp,
getSize = fread(inBuf, 1, kBufSize, srcFp);
if (ferror(srcFp)) {
ALOGD("deflate read failed (errno=%d)\n", errno);
result = UNKNOWN_ERROR;
delete[] inBuf;
goto bail;
}
@ -937,6 +938,7 @@ status_t ZipFile::compressFpToFp(FILE* dstFp, FILE* srcFp,
ALOGV("+++ writing %d bytes\n", (int)outSize);
if (fwrite(outBuf, 1, outSize, dstFp) != outSize) {
ALOGD("write %d failed in deflate\n", (int)outSize);
result = UNKNOWN_ERROR;
goto bail;
}