From 21ac9f54cf163f913bf8e7cc8ebbe635c9449eff Mon Sep 17 00:00:00 2001 From: Jonathan Hui Date: Tue, 19 Sep 2023 12:31:01 -0700 Subject: [PATCH] [tcp] address uninitialized variable warning (#9438) --- src/core/net/tcp6.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/net/tcp6.cpp b/src/core/net/tcp6.cpp index c11e52e1cd0..74d598a82c3 100644 --- a/src/core/net/tcp6.cpp +++ b/src/core/net/tcp6.cpp @@ -432,7 +432,7 @@ bool Tcp::Endpoint::FirePendingTimers(TimeMilli aNow, bool &aHasFutureTimer, Tim * this only happens if the connection is dropped (e.g., it * times out). */ - int dropped; + int dropped = 0; switch (timerIndex) {