Files
build/tools
Yunlian Jiang 221c1c027a 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
2016-10-10 17:31:06 -07:00
..
2016-06-06 14:51:52 -07:00
2016-06-14 13:50:38 -07:00
2016-06-16 14:52:47 -07:00
2016-09-07 13:21:00 -07:00
2014-08-08 13:18:53 -07:00
2016-06-06 14:51:52 -07:00
2015-11-19 18:42:52 +00:00
2012-08-16 22:45:55 -07:00
2016-09-15 14:40:39 -07:00