commit | 68b69c35b797d9dcacfc76fd333457ceffe7d6e1 | [log] [tgz] |
---|---|---|
author | Stephen Hines <srhines@google.com> | Thu May 09 20:38:29 2019 -0700 |
committer | android-build-merger <android-build-merger@google.com> | Thu May 09 20:38:29 2019 -0700 |
tree | 80639cb17fcc4a1d8f1a378b3c2a7b68d409e3c4 | |
parent | 0df5a1cb66b5ec8b6bc31a63e7cd415b89d4db29 [diff] | |
parent | f0d59e24c3f45a57d8ec4904550cb5f041b47505 [diff] |
Merge "NFC: Fix potentially uninitialized 'port' variable." am: f0d59e24c3 Change-Id: I6525a89a12db0a1cb9dc625eea8028b15eaaced5
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) {