From 763788894c4383894d638b6764507da4b036705a Mon Sep 17 00:00:00 2001 From: Richard Hughes Date: Mon, 30 Jul 2012 09:59:13 +0100 Subject: [PATCH] network: Don't show the NULL address in the IP overview --- panels/network/panel-common.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/panels/network/panel-common.c b/panels/network/panel-common.c index b43d8912e..76a380ebb 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;