Revert "Fix babeltrace-log uninitialized memory"
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Fri, 7 Sep 2012 13:16:19 +0000 (09:16 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Fri, 7 Sep 2012 13:16:19 +0000 (09:16 -0400)
This reverts commit 36741bea2b53007c29ac0391ee9086722e00653a.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
formats/ctf/ctf.c

index d4ff2a52267be7d2a00d2428bd7b42a068875a01..f43fe91789d21d109c0adf407a0b7e951201ca39 100644 (file)
@@ -550,7 +550,6 @@ error:
 
 void ctf_init_pos(struct ctf_stream_pos *pos, int fd, int open_flags)
 {
 
 void ctf_init_pos(struct ctf_stream_pos *pos, int fd, int open_flags)
 {
-       memset(pos, 0, sizeof(*pos));
        pos->fd = fd;
        if (fd >= 0) {
                pos->packet_cycles_index = g_array_new(FALSE, TRUE,
        pos->fd = fd;
        if (fd >= 0) {
                pos->packet_cycles_index = g_array_new(FALSE, TRUE,
This page took 0.025608 seconds and 4 git commands to generate.