projects
/
oweals
/
gnunet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4b72d1f
)
do not crash all the time in to_file()
author
Christian Grothoff
<christian@grothoff.org>
Mon, 25 Feb 2019 22:10:16 +0000
(23:10 +0100)
committer
Christian Grothoff
<christian@grothoff.org>
Mon, 25 Feb 2019 22:10:16 +0000
(23:10 +0100)
src/rps/rps-test_util.h
patch
|
blob
|
history
diff --git
a/src/rps/rps-test_util.h
b/src/rps/rps-test_util.h
index 484d0f7da102feee05de6c721622d5d8f58403fc..78d1e0a26ebf685abbdb4ef2f3175e627e511e46 100644
(file)
--- 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__);\