[gnome-applets] netspeed: fix netspeed_applet_get_auto_device_name
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-applets] netspeed: fix netspeed_applet_get_auto_device_name
- Date: Wed, 22 Jul 2015 20:14:24 +0000 (UTC)
commit 0e9c5a3d2fbaa71a9305c8a5fd6e98fb02197b2b
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date: Wed Jul 22 23:13:04 2015 +0300
netspeed: fix netspeed_applet_get_auto_device_name
netspeed/src/netspeed.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/netspeed/src/netspeed.c b/netspeed/src/netspeed.c
index cfa5ef1..de23e16 100644
--- a/netspeed/src/netspeed.c
+++ b/netspeed/src/netspeed.c
@@ -1577,7 +1577,9 @@ netspeed_applet_get_auto_device_name (void)
GList *ptr;
gchar *device = NULL;
- for (; ptr; ptr = ptr->next) {
+ devices = get_available_devices ();
+
+ for (ptr = devices; ptr; ptr = ptr->next) {
if (g_strcmp0 (ptr->data, "lo") != 0) {
device = g_strdup (ptr->data);
break;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]