wifi: fix typo in device_removed_cb()

https://bugzilla.gnome.org/show_bug.cgi?id=789872
This commit is contained in:
Xiang Fan 2017-11-03 23:18:41 +08:00 committed by Rui Matos
parent 03ea0b98f7
commit fe5ab55ec4

View file

@ -386,7 +386,7 @@ device_removed_cb (NMClient *client,
/* Remove from the devices list */ /* Remove from the devices list */
for (i = 0; i < self->devices->len; i++) for (i = 0; i < self->devices->len; i++)
{ {
NetObject *object = g_ptr_array_index (self->devices, 0); NetObject *object = g_ptr_array_index (self->devices, i);
if (g_strcmp0 (net_object_get_id (object), id) == 0) if (g_strcmp0 (net_object_get_id (object), id) == 0)
{ {