diff options
author | Christian Grothoff <christian@grothoff.org> | 2020-07-05 16:32:34 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2020-07-05 16:32:34 +0200 |
commit | e31c1d4a9f78c4e31fda1f98fe349b33abdd01a2 (patch) | |
tree | 61df772a93f7f21af7c715ddd4b9a3f1a50e0509 /src/util/getopt_helpers.c | |
parent | 1437556645417e6302862845e7ebcbd4c9908357 (diff) | |
download | gnunet-e31c1d4a9f78c4e31fda1f98fe349b33abdd01a2.tar.gz gnunet-e31c1d4a9f78c4e31fda1f98fe349b33abdd01a2.zip |
GNUNET_free_non_null -> GNUNET_free
Diffstat (limited to 'src/util/getopt_helpers.c')
-rw-r--r-- | src/util/getopt_helpers.c | 4 |
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 | } |