aboutsummaryrefslogtreecommitdiff
path: root/src/setup/gnunet-setup.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/setup/gnunet-setup.c')
-rw-r--r--src/setup/gnunet-setup.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/setup/gnunet-setup.c b/src/setup/gnunet-setup.c
index bcd961b4..825fef80 100644
--- a/src/setup/gnunet-setup.c
+++ b/src/setup/gnunet-setup.c
@@ -103,7 +103,7 @@ update_visibility (const struct GNUNET_SETUP_OptionSpecification *os,
103 GtkWidget *widget; 103 GtkWidget *widget;
104 regex_t r; 104 regex_t r;
105 105
106 if (os->visibility == NULL) 106 if (NULL == os->visibility)
107 return; 107 return;
108 i = 0; 108 i = 0;
109 while (os->visibility[i].widget_name != NULL) 109 while (os->visibility[i].widget_name != NULL)
@@ -176,7 +176,7 @@ widget_state_change_callback (const struct GNUNET_SETUP_OptionSpecification *os)
176 GNUNET_CONFIGURATION_get_value_string (cfg, os->section, 176 GNUNET_CONFIGURATION_get_value_string (cfg, os->section,
177 os->option, &value)); 177 os->option, &value));
178 else 178 else
179 value = NULL; 179 return;
180 update_visibility (os, value); 180 update_visibility (os, value);
181 GNUNET_free_non_null (value); 181 GNUNET_free_non_null (value);
182} 182}