[gnome-control-center] network: Don't show the NULL address in the IP overview



commit 763788894c4383894d638b6764507da4b036705a
Author: Richard Hughes <richard hughsie com>
Date:   Mon Jul 30 09:59:13 2012 +0100

    network: Don't show the NULL address in the IP overview

 panels/network/panel-common.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/panels/network/panel-common.c b/panels/network/panel-common.c
index b43d891..76a380e 100644
--- a/panels/network/panel-common.c
+++ b/panels/network/panel-common.c
@@ -557,6 +557,8 @@ get_ipv4_config_address_as_string (NMIP4Config *ip4_config, const char *what)
 
         if (!inet_ntop (AF_INET, &addr, tmp, sizeof(tmp)))
                 goto out;
+        if (g_strcmp0 (tmp, "0.0.0.0") == 0)
+                goto out;
         str = g_strdup (tmp);
 out:
         return str;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]