summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Gamari <ben@smart-cactus.org>2022-01-26 19:25:02 +0000
committerBen Gamari <ben@smart-cactus.org>2022-01-26 19:25:02 +0000
commit514d6b99e2b094f61f95eb79cd92b75ce34a2abf (patch)
treec4b915ceb1a4ee77e2dd1d8c163a5f54cca70a64
parent4d7688d66fff18e427bb522a9696d4b9cd9280f9 (diff)
downloadhaskell-wip/eventlog-opt.tar.gz
rts/eventlog: Ensure that flushCount is initializedwip/eventlog-opt
-rw-r--r--rts/eventlog/EventLog.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/rts/eventlog/EventLog.c b/rts/eventlog/EventLog.c
index 85fd555439..ca37b441c6 100644
--- a/rts/eventlog/EventLog.c
+++ b/rts/eventlog/EventLog.c
@@ -95,7 +95,7 @@ static eventlog_init_func_t *eventlog_header_funcs = NULL;
#define EVENT_LOG_SIZE 2 * (1024 * 1024) // 2MB
-static int flushCount;
+static int flushCount = 0;
// Struct for record keeping of buffer to store event types and events.
//