Commit c3b70a34 authored by Zeeshan Ali's avatar Zeeshan Ali

wifi: Add a NULL check

Avoid a potential crash by adding a NULL check.
parent 125a5b29
......@@ -275,6 +275,9 @@ gclue_wifi_init (GClueWifi *wifi)
devices = nm_client_get_devices (wifi->priv->client);
if (devices == NULL)
for (i = 0; i < devices->len; i++) {
NMDevice *device = g_ptr_array_index (devices, i);
if (NM_IS_DEVICE_WIFI (device)) {
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment