summaryrefslogtreecommitdiff
path: root/clients
diff options
context:
space:
mode:
authorDan Winship <danw@gnome.org>2014-09-15 15:47:21 -0400
committerDan Winship <danw@gnome.org>2014-09-17 08:21:21 -0400
commitb9f9fd39ab438d4aa3dd1b636d7c77e87cb856ef (patch)
tree7389b5d37334e81ee8543aaa00031ab1ed2e03f5 /clients
parentb05c8dbda572d558d04b32da4c4f36b512ac0150 (diff)
downloadNetworkManager-b9f9fd39ab438d4aa3dd1b636d7c77e87cb856ef.tar.gz
Revert "tui: fix a crash"
This reverts commit c0ecd2f62815606824bc934599dc46b069fe9962.
Diffstat (limited to 'clients')
-rw-r--r--clients/tui/nm-editor-bindings.c16
1 files changed, 6 insertions, 10 deletions
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);