aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2011-12-23 15:55:49 +0000
committerChristian Grothoff <christian@grothoff.org>2011-12-23 15:55:49 +0000
commita7c320630887ffbf9ae10a83226a6d9b6fa63ace (patch)
treea0092634d5101810551d20b44d27f153ead23960
parentcbfebfa092036442409ab371f1fc8b553f4c7aeb (diff)
downloadgnunet-gtk-a7c320630887ffbf9ae10a83226a6d9b6fa63ace.tar.gz
gnunet-gtk-a7c320630887ffbf9ae10a83226a6d9b6fa63ace.zip
-avoid NPE
-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}