mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-05 03:20:18 +01:00
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:
parent
46c869b295
commit
749cc84a95
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue