tui: fix unsetting Gateway (rh #1163896)

When the Gateway field is empty, we need to set the property to NULL,
not "".
This commit is contained in:
Dan Winship 2014-11-13 11:30:57 -05:00
parent 46c869b295
commit 749cc84a95

View file

@ -292,7 +292,7 @@ ip_gateway_from_string (GBinding *binding,
const char *gateway;
gateway = g_value_get_string (source_value);
if (*gateway && !nm_utils_ipaddr_valid (family, gateway))
if (gateway && !nm_utils_ipaddr_valid (family, gateway))
gateway = NULL;
g_value_set_string (target_value, gateway);