From b41f07bc518d4376250175329e7600051792e48b Mon Sep 17 00:00:00 2001 From: Bjorn Terelius Date: Thu, 29 Feb 2024 16:22:01 +0100 Subject: [PATCH] Explicitly initialize the SctpTransportState to kNew MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Bug: webrtc:15814 Change-Id: I94325979777741a2798e1bfac3474bcc364592bd Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/341020 Commit-Queue: Björn Terelius Reviewed-by: Victor Boivie Reviewed-by: Mirko Bonadei Reviewed-by: Harald Alvestrand Cr-Commit-Position: refs/heads/main@{#41869} --- api/sctp_transport_interface.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/sctp_transport_interface.h b/api/sctp_transport_interface.h index 23169ddb2b..cfd7e130d2 100644 --- a/api/sctp_transport_interface.h +++ b/api/sctp_transport_interface.h @@ -53,7 +53,7 @@ class RTC_EXPORT SctpTransportInformation { absl::optional MaxChannels() const { return max_channels_; } private: - SctpTransportState state_; + SctpTransportState state_ = SctpTransportState::kNew; rtc::scoped_refptr dtls_transport_; absl::optional max_message_size_; absl::optional max_channels_;