diff options
author | Christian Grothoff <christian@grothoff.org> | 2011-09-14 07:24:03 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2011-09-14 07:24:03 +0000 |
commit | 835725330346ef46ffcf29caa9a1798a23887309 (patch) | |
tree | 8a48fd1c24fe89f9a9ae20f291252219a398f79a /src/util/getopt_helpers.c | |
parent | 4fd99b89748c6e3b1f5a7b46a3c1597106c2d172 (diff) | |
download | gnunet-835725330346ef46ffcf29caa9a1798a23887309.tar.gz gnunet-835725330346ef46ffcf29caa9a1798a23887309.zip |
fixing 1753
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 | } |