From 749cc84a957cfe6ef6e251ea97eb896a4960d9b1 Mon Sep 17 00:00:00 2001 From: Dan Winship Date: Thu, 13 Nov 2014 11:30:57 -0500 Subject: tui: fix unsetting Gateway (rh #1163896) When the Gateway field is empty, we need to set the property to NULL, not "". --- clients/tui/nm-editor-bindings.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- cgit v1.2.1