mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-11-13 06:50:54 +01:00
Wifi (SunOS): eliminates a maybe-uninitialized warning
This commit is contained in:
1 parent
39d667d1d5
commit
54dcb1b6f9
1 file changed
+2
-2
@@ -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