diff --git a/tests/delete.c b/tests/delete.c index bf3336c..b72d3ca 100644 --- a/tests/delete.c +++ b/tests/delete.c @@ -95,7 +95,7 @@ static void process_devices(char **argv) guint j; DBusGProxy *dev; - path = g_ptr_array_index(devices, 0); + path = g_ptr_array_index(devices, i); g_print("Using device %s\n", path); /* FIXME use for_name_owner?? */ diff --git a/tests/list.c b/tests/list.c index a7f2f48..9f5285e 100644 --- a/tests/list.c +++ b/tests/list.c @@ -111,7 +111,7 @@ static void process_devices(char **argv) guint j; DBusGProxy *dev; - path = g_ptr_array_index(devices, 0); + path = g_ptr_array_index(devices, i); g_print("Using device %s\n", path); /* FIXME use for_name_owner?? */