aboutsummaryrefslogtreecommitdiff
path: root/src/util/getopt_helpers.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/util/getopt_helpers.c')
-rw-r--r--src/util/getopt_helpers.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/util/getopt_helpers.c b/src/util/getopt_helpers.c
index a56ef2d96..592875531 100644
--- a/src/util/getopt_helpers.c
+++ b/src/util/getopt_helpers.c
@@ -377,7 +377,7 @@ set_string (struct GNUNET_GETOPT_CommandLineProcessorContext *ctx,
377 (void) ctx; 377 (void) ctx;
378 (void) option; 378 (void) option;
379 GNUNET_assert (NULL != value); 379 GNUNET_assert (NULL != value);
380 GNUNET_free_non_null (*val); 380 GNUNET_free (*val);
381 *val = GNUNET_strdup (value); 381 *val = GNUNET_strdup (value);
382 return GNUNET_OK; 382 return GNUNET_OK;
383} 383}
@@ -458,7 +458,7 @@ set_filename (struct GNUNET_GETOPT_CommandLineProcessorContext *ctx,
458 (void) ctx; 458 (void) ctx;
459 (void) option; 459 (void) option;
460 GNUNET_assert (NULL != value); 460 GNUNET_assert (NULL != value);
461 GNUNET_free_non_null (*val); 461 GNUNET_free (*val);
462 *val = GNUNET_STRINGS_filename_expand (value); 462 *val = GNUNET_STRINGS_filename_expand (value);
463 return GNUNET_OK; 463 return GNUNET_OK;
464} 464}