summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2019-02-25 23:10:16 +0100
committerChristian Grothoff <christian@grothoff.org>2019-02-25 23:10:16 +0100
commit0e3f1038f95d67ffc029debfce7e60e6de05a135 (patch)
tree2fdbfa2e19ad8bdd7f59c6fe4eb5b630ac8762f6 /src
parent4b72d1fe12c340fc0f53c42309e9789bcb1d831f (diff)
do not crash all the time in to_file()
Diffstat (limited to 'src')
-rw-r--r--src/rps/rps-test_util.h2
1 files changed, 1 insertions, 1 deletions
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__);\