From e8d1d36e7b337b47eaf7e4c8bff10c6d6332133a Mon Sep 17 00:00:00 2001 From: Kshitij Jain Date: Mon, 25 Mar 2024 12:51:00 +0000 Subject: [PATCH] initialise variable --- src/platform/Linux/NetworkCommissioningWiFiDriver.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/platform/Linux/NetworkCommissioningWiFiDriver.cpp b/src/platform/Linux/NetworkCommissioningWiFiDriver.cpp index 0621eecd4e09df..7521d53e3fcd6c 100644 --- a/src/platform/Linux/NetworkCommissioningWiFiDriver.cpp +++ b/src/platform/Linux/NetworkCommissioningWiFiDriver.cpp @@ -379,7 +379,7 @@ void LinuxWiFiDriver::ScanNetworks(ByteSpan ssid, WiFiDriver::ScanCallback * cal size_t LinuxWiFiDriver::WiFiNetworkIterator::Count() { - size_t count; + size_t count = 0; for (int networkIndex = 0; networkIndex < kMaxNetworks; networkIndex++) { if(!driver->mStagingNetwork[networkIndex].Empty())