diff options
author | 2020-04-23 14:39:18 -0700 | |
---|---|---|
committer | 2020-04-23 14:52:58 -0700 | |
commit | 788703574368a83eaecd689883a1e9bed32fb21d (patch) | |
tree | 022f5211375c1c511e5dcda5e5c8e7826072f19d /tools/bit/adb.cpp | |
parent | f5ed9171e63223f5b6d501cec5664f76bb971161 (diff) |
Fix clang-analyzer-core.uninitialized.Branch warnings
Bug: 154760495
Test: make with WITH_TIDY=1 and DEFAULT_GLOBAL_TIDY_CHECKS=clang-analyzer-core.uninitialized.Branch
Change-Id: I569749166177c25e63b32fb468dccd13797acc05
Diffstat (limited to 'tools/bit/adb.cpp')
-rw-r--r-- | tools/bit/adb.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/bit/adb.cpp b/tools/bit/adb.cpp index fa7d3d4031d4..f521a63255e1 100644 --- a/tools/bit/adb.cpp +++ b/tools/bit/adb.cpp @@ -200,7 +200,7 @@ skip_bytes(int fd, ssize_t size, char* scratch, int scratchSize) static int skip_unknown_field(int fd, uint64_t tag, char* scratch, int scratchSize) { - bool done; + bool done = false; int err; uint64_t size; switch (tag & 0x7) { |