initialize commit_seq
authorPierre-Marc Fournier <pierre-marc.fournier@polymtl.ca>
Fri, 5 Feb 2010 20:26:59 +0000 (15:26 -0500)
committerPierre-Marc Fournier <pierre-marc.fournier@polymtl.ca>
Mon, 15 Feb 2010 05:39:08 +0000 (00:39 -0500)
libust/buffers.c

index 12753c1961345f4430779ef8d1a69f48ce2aaf21..708575a9a4e583eea8784b94f3cfc8242b3982dd 100644 (file)
@@ -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 */
 
This page took 0.026079 seconds and 4 git commands to generate.