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

This commit is contained in:
Richard Hughes 2012-07-30 09:59:13 +01:00
parent ae5acbe421
commit 763788894c

View file

@ -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;