Babeltrace ctf-text duplicated error message
authorFredrik Oestman <Fredrik_Oestman@mentor.com>
Tue, 3 Apr 2012 12:55:42 +0000 (08:55 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Tue, 3 Apr 2012 12:55:42 +0000 (08:55 -0400)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
formats/ctf-text/ctf-text.c

index 3b38ecaca9671fe88815ea5639ef264797f3212b..92ad42632ece6049e5153d15325ff47a6ff14695 100644 (file)
@@ -236,8 +236,8 @@ int ctf_text_write_event(struct stream_pos *ppos, struct ctf_stream_definition *
                return -EINVAL;
        }
        event_class = g_ptr_array_index(stream_class->events_by_id, id);
-       if (!event) {
-               fprintf(stderr, "[error] Event id %" PRIu64 " is unknown.\n", id);
+       if (!event_class) {
+               fprintf(stderr, "[error] Event class id %" PRIu64 " is unknown.\n", id);
                return -EINVAL;
        }
 
This page took 0.033115 seconds and 4 git commands to generate.