Fix: Wrong variable checked for allocation failure
[babeltrace.git] / formats / ctf / ir / stream.c
index 6f972590fde83fa259bc28ca485a0eb7090f0ea8..717925761336bfef2ada9b1f5b2287ff3f3fdd3e 100644 (file)
@@ -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;
                }
        }
This page took 0.022829 seconds and 4 git commands to generate.