callbacks.c: handle extract_ctf_stream_event return value
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Tue, 23 Oct 2012 19:46:31 +0000 (15:46 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Tue, 23 Oct 2012 19:46:31 +0000 (15:46 -0400)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
formats/ctf/callbacks.c

index 0c221f9da684e5dfe58b058548be4263fdbdabc7..16c7e0a186a466f6be505ce79510e77b493fdded 100644 (file)
@@ -188,6 +188,8 @@ void process_callbacks(struct bt_ctf_iter *iter,
        assert(iter && stream);
 
        ret = extract_ctf_stream_event(stream, &ctf_data);
+       if (ret)
+               goto end;
 
        /* process all events callback first */
        if (iter->main_callbacks.callback) {
This page took 0.024328 seconds and 4 git commands to generate.