summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Winship <danw@gnome.org>2014-11-13 11:30:57 -0500
committerDan Winship <danw@gnome.org>2014-11-13 11:30:57 -0500
commit749cc84a957cfe6ef6e251ea97eb896a4960d9b1 (patch)
tree602b44fad6a74d98c889a5185fd00bc3c376ce62
parent46c869b2959f5c396ab150145d8c2e60218cc212 (diff)
downloadNetworkManager-749cc84a957cfe6ef6e251ea97eb896a4960d9b1.tar.gz
tui: fix unsetting Gateway (rh #1163896)
When the Gateway field is empty, we need to set the property to NULL, not "".
-rw-r--r--clients/tui/nm-editor-bindings.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/clients/tui/nm-editor-bindings.c b/clients/tui/nm-editor-bindings.c
index c95f55a44e..9218c31f52 100644
--- a/clients/tui/nm-editor-bindings.c
+++ b/clients/tui/nm-editor-bindings.c
@@ -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);