mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2026-01-09 17:11:42 +00:00
extra/usb_updater: don't use uninitialize variables
The 'transferred_sections' variable wasn't initialized in all paths. Fix that. BUG=chrome-os-partner:58794 BRANCH=None TEST=Built. Change-Id: If82ef1274d6a931e0cd193f276f34bfcac1fb1c7 Signed-off-by: Aaron Durbin <adurbin@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/404548 Tested-by: Matthias Kaehlcke <mka@chromium.org> Reviewed-by: Matthias Kaehlcke <mka@chromium.org>
This commit is contained in:
committed by
Matthias Kaehlcke
parent
97158b6543
commit
52d80971c7
@@ -1038,7 +1038,7 @@ int main(int argc, char *argv[])
|
||||
uint16_t vid = VID, pid = PID;
|
||||
int i;
|
||||
size_t j;
|
||||
int transferred_sections;
|
||||
int transferred_sections = 0;
|
||||
int binary_vers = 0;
|
||||
int show_fw_ver = 0;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user