Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit be6124e7 authored by Yunlian Jiang's avatar Yunlian Jiang Committed by android-build-merger
Browse files

Merge "Fix an uninitialized value warning." am: f943e138 am: d7a0b25d am: 570063f8

am: 4fdd8f15

Change-Id: I042c6951378b125336eb0899d4e73dc11c75d5a4
parents 9ec762c1 4fdd8f15
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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;
    }