diff --git a/src/core/net/tcp6.cpp b/src/core/net/tcp6.cpp index c11e52e1c..74d598a82 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) {