diff options
author | Christian Grothoff <christian@grothoff.org> | 2019-02-25 23:10:16 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2019-02-25 23:10:16 +0100 |
commit | 0e3f1038f95d67ffc029debfce7e60e6de05a135 (patch) | |
tree | 2fdbfa2e19ad8bdd7f59c6fe4eb5b630ac8762f6 /src/rps | |
parent | 4b72d1fe12c340fc0f53c42309e9789bcb1d831f (diff) | |
download | gnunet-0e3f1038f95d67ffc029debfce7e60e6de05a135.tar.gz gnunet-0e3f1038f95d67ffc029debfce7e60e6de05a135.zip |
do not crash all the time in to_file()
Diffstat (limited to 'src/rps')
-rw-r--r-- | src/rps/rps-test_util.h | 2 |
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 (); | |||
64 | * This function is used to facilitate writing important information to disk | 64 | * This function is used to facilitate writing important information to disk |
65 | */ | 65 | */ |
66 | #ifdef TO_FILE | 66 | #ifdef TO_FILE |
67 | #define to_file(file_name, ...) do {GNUNET_assert (NULL != file_name);\ | 67 | #define to_file(file_name, ...) do { if (NULL == file_name) { GNUNET_break(0); return;} \ |
68 | char tmp_buf[512] = "";\ | 68 | char tmp_buf[512] = "";\ |
69 | int size;\ | 69 | int size;\ |
70 | size = GNUNET_snprintf(tmp_buf,sizeof(tmp_buf),__VA_ARGS__);\ | 70 | size = GNUNET_snprintf(tmp_buf,sizeof(tmp_buf),__VA_ARGS__);\ |