Merge "NFC: Fix potentially uninitialized 'port' variable."

This commit is contained in:
Treehugger Robot 2019-05-10 01:34:56 +00:00 committed by Gerrit Code Review
commit f0d59e24c3
1 changed files with 1 additions and 1 deletions

View File

@ -71,7 +71,7 @@ static int adb_get_emulator_console_port(const char* serial) {
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) {