gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] [gnunet] branch master updated: do not crash all the time i


From: gnunet
Subject: [GNUnet-SVN] [gnunet] branch master updated: do not crash all the time in to_file()
Date: Mon, 25 Feb 2019 23:10:22 +0100

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

grothoff pushed a commit to branch master
in repository gnunet.

The following commit(s) were added to refs/heads/master by this push:
     new 0e3f1038f do not crash all the time in to_file()
0e3f1038f is described below

commit 0e3f1038f95d67ffc029debfce7e60e6de05a135
Author: Christian Grothoff <address@hidden>
AuthorDate: Mon Feb 25 23:10:16 2019 +0100

    do not crash all the time in to_file()
---
 src/rps/rps-test_util.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/rps/rps-test_util.h b/src/rps/rps-test_util.h
index 484d0f7da..78d1e0a26 100644
--- a/src/rps/rps-test_util.h
+++ b/src/rps/rps-test_util.h
@@ -64,7 +64,7 @@ close_all_files ();
  * This function is used to facilitate writing important information to disk
  */
 #ifdef TO_FILE
-#define to_file(file_name, ...) do {GNUNET_assert (NULL != file_name);\
+#define to_file(file_name, ...) do { if (NULL == file_name) { GNUNET_break(0); 
return;} \
     char tmp_buf[512] = "";\
     int size;\
     size = GNUNET_snprintf(tmp_buf,sizeof(tmp_buf),__VA_ARGS__);\

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



reply via email to

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