Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 68b69c35 authored by Stephen Hines's avatar Stephen Hines Committed by android-build-merger
Browse files

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

am: f0d59e24

Change-Id: I6525a89a12db0a1cb9dc625eea8028b15eaaced5
parents 0df5a1cb f0d59e24
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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) {