From 9ff2b8adeaadc0a8fbd8c5aa23f2cbadf2f1a55f Mon Sep 17 00:00:00 2001 From: Fredrik Oestman Date: Tue, 3 Apr 2012 08:55:42 -0400 Subject: [PATCH] Babeltrace ctf-text duplicated error message Signed-off-by: Mathieu Desnoyers --- formats/ctf-text/ctf-text.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/formats/ctf-text/ctf-text.c b/formats/ctf-text/ctf-text.c index 3b38ecac..92ad4263 100644 --- a/formats/ctf-text/ctf-text.c +++ b/formats/ctf-text/ctf-text.c @@ -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; } -- 2.34.1