aboutsummaryrefslogtreecommitdiff
path: root/src/util/test_common_logging.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/util/test_common_logging.c')
-rw-r--r--src/util/test_common_logging.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/util/test_common_logging.c b/src/util/test_common_logging.c
index 3d07661c2..8a9b73108 100644
--- a/src/util/test_common_logging.c
+++ b/src/util/test_common_logging.c
@@ -42,6 +42,9 @@ main (int argc, char *argv[])
42 unsigned int failureCount = 0; 42 unsigned int failureCount = 0;
43 unsigned int logs = 0; 43 unsigned int logs = 0;
44 44
45 /* FIXME: this causes a double free, because common_logging sets
46 * GNUNET_stderr = stderr before main() gets executed and then tries
47 * to fclose(GNUNET_stderr) in GNUNET_log_setup */
45 fclose (stderr); 48 fclose (stderr);
46#ifndef MINGW 49#ifndef MINGW
47 stderr = NULL; 50 stderr = NULL;