summaryrefslogtreecommitdiff
path: root/tools/fileslist_util.py
diff options
context:
space:
mode:
author Yunlian Jiang <yunlian@google.com> 2016-10-05 10:58:37 -0700
committer George Burgess IV <gbiv@google.com> 2016-10-10 17:31:06 -0700
commit221c1c027a2b4145b0f094dfec0686f773cbf2b6 (patch)
tree171708f8e902a8e5aa583ea6156e5eead60cfa8b /tools/fileslist_util.py
parenta8c8dadd09f12d21a432fd9777bb894f207d6420 (diff)
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
Diffstat (limited to 'tools/fileslist_util.py')
0 files changed, 0 insertions, 0 deletions