aboutsummaryrefslogtreecommitdiff
path: root/src/util/test_common_logging.c
diff options
context:
space:
mode:
authorHeikki Lindholm <holin@iki.fi>2009-10-29 14:58:11 +0000
committerHeikki Lindholm <holin@iki.fi>2009-10-29 14:58:11 +0000
commit5e73fcf9efb7ec0d0edd62c956a1f62f108b1b06 (patch)
tree1ae392660f164cb083bc1396c7cdf052bf234c5a /src/util/test_common_logging.c
parenta24e239f88a82e3037799a4ce0a8791c1782b027 (diff)
downloadgnunet-5e73fcf9efb7ec0d0edd62c956a1f62f108b1b06.tar.gz
gnunet-5e73fcf9efb7ec0d0edd62c956a1f62f108b1b06.zip
observed on ppc64
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;