From: Pierre-Marc Fournier Date: Fri, 5 Feb 2010 20:26:59 +0000 (-0500) Subject: initialize commit_seq X-Git-Tag: v1.9.1~751 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=373157298daba0df19c1132fe24579d33fe47ffa;p=lttng-ust.git initialize commit_seq --- diff --git a/libust/buffers.c b/libust/buffers.c index 12753c19..708575a9 100644 --- a/libust/buffers.c +++ b/libust/buffers.c @@ -729,6 +729,7 @@ static int ust_buffers_init_buffer(struct ust_trace *trace, //ust// if(!ltt_buf->commit_seq) { //ust// return -1; //ust// } + memset(buf->commit_seq, 0, sizeof(buf->commit_seq[0]) * n_subbufs); /* FIXME: decrementally destroy on error */