Fix ctf teardown
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Fri, 6 May 2011 23:13:18 +0000 (19:13 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Fri, 6 May 2011 23:13:18 +0000 (19:13 -0400)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
formats/ctf/ctf.c

index d214d1aae4f25c0bd4d0c9b027187aa9b1113abc..1246569e3327662e5ddd2464e8f86eda96a3848f 100644 (file)
@@ -92,7 +92,6 @@ void ctf_init_pos(struct ctf_stream_pos *pos, int fd, int open_flags)
                                                sizeof(struct packet_index));
        else
                pos->packet_index = NULL;
-
        switch (open_flags & O_ACCMODE) {
        case O_RDONLY:
                pos->prot = PROT_READ;
@@ -622,11 +621,10 @@ void ctf_close_trace(struct trace_descriptor *tdp)
                for (i = 0; i < td->streams->len; i++) {
                        struct ctf_stream *stream;
                        int j;
-
                        stream = g_ptr_array_index(td->streams, i);
                        for (j = 0; j < stream->files->len; j++) {
                                struct ctf_file_stream *file_stream;
-                               file_stream = g_ptr_array_index(td->streams, j);
+                               file_stream = g_ptr_array_index(stream->files, j);
                                ctf_close_file_stream(file_stream);
                        }
 
This page took 0.025706 seconds and 4 git commands to generate.