Fix an uninitialized value warning.
Warning from the static analyzer: build/tools/zipalign/ZipFile.cpp:503:5: warning: Function call argument is an uninitialized value pEntry->setDataInfo(uncompressedLen, endPosn - startPosn, crc, Specifically, it's referencing `crc`, which would be uninitialized if we hit either of these two error cases, since we'd return `NO_ERROR`. Note that the warning is still there, but that's only because the static analyzer can't see the asserts. If we #undef NDEBUG in the file, then the warning disappears. Bug: none Test: With NDEBUG undefined, the warning is gone. Change-Id: Iaed66127746c38add2c842ab027f2e1982d0e2fd
Loading
Please register or sign in to comment