commit | f0d59e24c3f45a57d8ec4904550cb5f041b47505 | [log] [tgz] |
---|---|---|
author | Treehugger Robot <treehugger-gerrit@google.com> | Fri May 10 01:34:56 2019 +0000 |
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | Fri May 10 01:34:56 2019 +0000 |
tree | 80639cb17fcc4a1d8f1a378b3c2a7b68d409e3c4 | |
parent | fe1d1e815f02bf5134ba12fd9dd8d8a8ea1c1f36 [diff] | |
parent | 391c40b9ec4d91c76497c482115f2456e88c06dc [diff] |
Merge "NFC: Fix potentially uninitialized 'port' variable."
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) {