gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] [gnunet] branch master updated: benchmarking: minor fix


From: gnunet
Subject: [GNUnet-SVN] [gnunet] branch master updated: benchmarking: minor fix
Date: Sat, 18 Aug 2018 02:49:19 +0200

This is an automated email from the git hooks/post-receive script.

dold pushed a commit to branch master
in repository gnunet.

The following commit(s) were added to refs/heads/master by this push:
     new bf1b56566 benchmarking: minor fix
bf1b56566 is described below

commit bf1b5656655b6ad1d0acedf4b6185f8bd80d470f
Author: Florian Dold <address@hidden>
AuthorDate: Sat Aug 18 02:34:23 2018 +0200

    benchmarking: minor fix
---
 src/util/benchmark.c | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/src/util/benchmark.c b/src/util/benchmark.c
index 421cafbef..8b8702e2a 100644
--- a/src/util/benchmark.c
+++ b/src/util/benchmark.c
@@ -96,7 +96,6 @@ write_benchmark_data (struct BenchmarkData *bd)
     GNUNET_free (s);
   }
 
-
   GNUNET_assert (GNUNET_OK == GNUNET_DISK_file_close (fh));
 }
 
@@ -130,7 +129,6 @@ thread_destructor (void *cls)
     return;
   
   GNUNET_assert (NULL != bd);
-
 }
 
 
@@ -183,6 +181,13 @@ get_url_benchmark_data (char *url)
   char trunc[MAX_BENCHMARK_URL_LEN];
   struct BenchmarkData *bd;
 
+  if (NULL == url)
+  {
+    /* Should not happen unless curl barfs */
+    GNUNET_break (0);
+    url = "<empty>";
+  }
+
   memcpy (trunc, url, MAX_BENCHMARK_URL_LEN);
   trunc[MAX_BENCHMARK_URL_LEN - 1] = 0;
 

-- 
To stop receiving notification emails like this one, please contact
address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]