From: Ivan Maidanski Date: Thu, 25 Apr 2019 07:04:02 +0000 (+0300) Subject: Explicitly zero-initialize trace_buf X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2e261d6659734fed5542b62060e7d2c58d703a8b;p=gc Explicitly zero-initialize trace_buf * mark.c [TRACE_BUF] (GC_trace_buf): Initialize to all zeros. --- diff --git a/mark.c b/mark.c index 6aed170e..77d6b0b5 100644 --- a/mark.c +++ b/mark.c @@ -1512,7 +1512,7 @@ struct trace_entry { word bytes_allocd; word arg1; word arg2; -} GC_trace_buf[TRACE_ENTRIES]; +} GC_trace_buf[TRACE_ENTRIES] = { { NULL, 0, 0, 0, 0 } }; int GC_trace_buf_ptr = 0;