[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [taler-exchange] branch master updated: Don't free null str
From: |
gnunet |
Subject: |
[GNUnet-SVN] [taler-exchange] branch master updated: Don't free null strings. |
Date: |
Wed, 01 May 2019 04:01:20 +0200 |
This is an automated email from the git hooks/post-receive script.
dold pushed a commit to branch master
in repository exchange.
The following commit(s) were added to refs/heads/master by this push:
new 8e391e8b Don't free null strings.
8e391e8b is described below
commit 8e391e8bfb0cd37181de8d1a921855ec798eaaad
Author: Florian Dold <address@hidden>
AuthorDate: Wed May 1 04:00:29 2019 +0200
Don't free null strings.
When running in client-only mode, this string will never be allocated,
but the code tried to free it ...
---
src/benchmark/taler-exchange-benchmark.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/benchmark/taler-exchange-benchmark.c
b/src/benchmark/taler-exchange-benchmark.c
index 59fcc659..feaa203a 100644
--- a/src/benchmark/taler-exchange-benchmark.c
+++ b/src/benchmark/taler-exchange-benchmark.c
@@ -816,8 +816,8 @@ int
main (int argc,
char *const *argv)
{
- char *exchange_url;
- char *auditor_url;
+ char *exchange_url = NULL;
+ char *auditor_url = NULL;
struct GNUNET_CONFIGURATION_Handle *cfg;
struct GNUNET_GETOPT_CommandLineOption options[] = {
GNUNET_GETOPT_option_mandatory
@@ -1031,8 +1031,8 @@ main (int argc,
NULL,
cfg_filename,
exchange_url);
- GNUNET_free (exchange_url);
- GNUNET_free (auditor_url);
+ GNUNET_free_non_null (exchange_url);
+ GNUNET_free_non_null (auditor_url);
duration = GNUNET_TIME_absolute_get_duration (start_time);
if (GNUNET_OK == result)
{
--
To stop receiving notification emails like this one, please contact
address@hidden
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] [taler-exchange] branch master updated: Don't free null strings.,
gnunet <=