diff --git a/clients/tui/nm-editor-bindings.c b/clients/tui/nm-editor-bindings.c index 1b0bd4a6cc..e3b210dec6 100644 --- a/clients/tui/nm-editor-bindings.c +++ b/clients/tui/nm-editor-bindings.c @@ -230,11 +230,9 @@ ip4_addresses_check_and_copy (GBinding *binding, strings = g_value_get_boxed (source_value); - if (strings) { - for (i = 0; strings[i]; i++) { - if (!ip_string_parse (strings[i], AF_INET, &addr, NULL)) - return FALSE; - } + for (i = 0; strings[i]; i++) { + if (!ip_string_parse (strings[i], AF_INET, &addr, NULL)) + return FALSE; } g_value_set_boxed (target_value, strings); @@ -692,11 +690,9 @@ ip6_addresses_check_and_copy (GBinding *binding, strings = g_value_get_boxed (source_value); - if (strings) { - for (i = 0; strings[i]; i++) { - if (!ip_string_parse (strings[i], AF_INET6, &addr, NULL)) - return FALSE; - } + for (i = 0; strings[i]; i++) { + if (!ip_string_parse (strings[i], AF_INET6, &addr, NULL)) + return FALSE; } g_value_set_boxed (target_value, strings);