Fix: Wrong variable checked for allocation failure
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Tue, 26 Jan 2016 20:45:38 +0000 (15:45 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Tue, 26 Jan 2016 20:45:38 +0000 (15:45 -0500)
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
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.025302 seconds and 4 git commands to generate.