From 54dcb1b6f976cd10edd53f2c7ec5c9098887cda4 Mon Sep 17 00:00:00 2001 From: Carter Li Date: Fri, 2 Oct 2026 23:24:56 +0800 Subject: [PATCH] Wifi (SunOS): eliminates a `maybe-uninitialized` warning --- src/detection/wifi/wifi_sunos.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/detection/wifi/wifi_sunos.c b/src/detection/wifi/wifi_sunos.c index 0b2e24ae2..651705098 100644 --- a/src/detection/wifi/wifi_sunos.c +++ b/src/detection/wifi/wifi_sunos.c @@ -182,8 +182,8 @@ const char* ffDetectWifi(FFlist* result) { } } - wl_encryption_t encryption; - wl_authmode_t authMode; + wl_encryption_t encryption = 0; + wl_authmode_t authMode = 0; bool haveEncryption = getWifiValue(fd, WL_ENCRYPTION, &encryption, sizeof(encryption), buffer); bool haveAuthMode = getWifiValue(fd, WL_AUTH_MODE, &authMode, sizeof(authMode), buffer); if (haveEncryption) {