mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-02-05 01:50:25 +01:00
core: fix setting wifi quality
wifi_utils_get_qual returns -1 on error. Keeping it in an unsigned variable is a bug. Error found by running Coverity https://bugzilla.redhat.com/show_bug.cgi?id=1025894 Signed-off-by: Thomas Haller <thaller@redhat.com>
This commit is contained in:
parent
d0abf65004
commit
7fd4d35463
1 changed files with 2 additions and 1 deletions
|
|
@ -678,7 +678,8 @@ periodic_update (gpointer user_data)
|
|||
NMDeviceWifi *self = NM_DEVICE_WIFI (user_data);
|
||||
NMDeviceWifiPrivate *priv = NM_DEVICE_WIFI_GET_PRIVATE (self);
|
||||
NMAccessPoint *new_ap;
|
||||
guint32 new_rate, percent;
|
||||
guint32 new_rate;
|
||||
int percent;
|
||||
NMDeviceState state;
|
||||
guint32 supplicant_state;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue