Wifi (SunOS): eliminates a maybe-uninitialized warning

This commit is contained in:
Carter Li
2026-10-02 23:24:56 +08:00
parent 39d667d1d5
commit 54dcb1b6f9
+2 -2
View File
@@ -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) {