commit | 0df63322f623902728db2cfd6ffdb786e9d4c196 | [log] [tgz] |
---|---|---|
author | Stephen Hines <srhines@google.com> | Thu May 09 22:15:13 2019 -0700 |
committer | android-build-merger <android-build-merger@google.com> | Thu May 09 22:15:13 2019 -0700 |
tree | 543cc06aaaa935ef40a671dae8a00f949ae0d433 | |
parent | 5151617d974b85cb2fc17245ac95a6666fe5bd09 [diff] | |
parent | 912feb950aaf38b317da1b9cb5ca60382f0ccc30 [diff] |
Merge "NFC: Fix potentially uninitialized 'port' variable." am: f0d59e24c3 am: 68b69c35b7 Change-Id: I3df8fa238dfaba119caad661914f59489d5c8207
diff --git a/adb/client/console.cpp b/adb/client/console.cpp index 1dbb6e2..d10f4de 100644 --- a/adb/client/console.cpp +++ b/adb/client/console.cpp
@@ -71,7 +71,7 @@ return -1; } - int port; + int port = -1; size_t emulator_count = 0; for (const auto& device : android::base::Split(devices, "\n")) { if (sscanf(device.c_str(), "emulator-%d", &port) == 1) {