diff options
Diffstat (limited to 'src/util/getopt_helpers.c')
-rw-r--r-- | src/util/getopt_helpers.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/util/getopt_helpers.c b/src/util/getopt_helpers.c index d050ec99c..f00c27f29 100644 --- a/src/util/getopt_helpers.c +++ b/src/util/getopt_helpers.c | |||
@@ -223,8 +223,7 @@ GNUNET_GETOPT_set_string (struct GNUNET_GETOPT_CommandLineProcessorContext *ctx, | |||
223 | char **val = scls; | 223 | char **val = scls; |
224 | 224 | ||
225 | GNUNET_assert (value != NULL); | 225 | GNUNET_assert (value != NULL); |
226 | if (NULL != *val) | 226 | GNUNET_free_non_null (*val); |
227 | GNUNET_free (*val); | ||
228 | *val = GNUNET_strdup (value); | 227 | *val = GNUNET_strdup (value); |
229 | return GNUNET_OK; | 228 | return GNUNET_OK; |
230 | } | 229 | } |