From: Jérémie Galarneau Date: Tue, 26 Jan 2016 20:45:38 +0000 (-0500) Subject: Fix: Wrong variable checked for allocation failure X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=commitdiff_plain;h=a6b2126688597b7527281567973ee3ca7312c14b Fix: Wrong variable checked for allocation failure Signed-off-by: Jérémie Galarneau --- diff --git a/formats/ctf/ir/stream.c b/formats/ctf/ir/stream.c index 6f972590..71792576 100644 --- a/formats/ctf/ir/stream.c +++ b/formats/ctf/ir/stream.c @@ -290,7 +290,7 @@ struct bt_ctf_stream *bt_ctf_stream_create( if (stream_class->event_context_type) { stream->event_context = bt_ctf_field_create( stream_class->event_context_type); - if (!stream->packet_context) { + if (!stream->event_context) { goto error; } }