mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-10-28 07:44:06 +01:00
Wifi (SunOS): eliminates a maybe-uninitialized warning
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user