Don't warn about empty scan results.
authorRoy Marples <roy@marples.name>
Fri, 9 Jul 2010 09:23:26 +0000 (09:23 +0000)
committerRoy Marples <roy@marples.name>
Fri, 9 Jul 2010 09:23:26 +0000 (09:23 +0000)
src/dhcpcd-gtk/main.c

index 3957e676ae6e99e0a7b53cd7208d6b7623b1934c..9734ad50e152675f51a7dbe9c44f09ed833e2bf7 100644 (file)
@@ -278,7 +278,7 @@ scan_cb(DHCPCD_CONNECTION *con, DHCPCD_IF *i, _unused void *data)
 
        g_message(_("%s: Received scan results"), i->ifname);
        scans = dhcpcd_wi_scans(con, i);
-       if (scans == NULL) {
+       if (scans == NULL && dhcpcd_error(con) != NULL) {
                g_warning("%s: %s", i->ifname, dhcpcd_error(con));
                dhcpcd_error_clear(con);
        }