X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=formats%2Fctf%2Fir%2Fstream-class.c;fp=formats%2Fctf%2Fir%2Fstream-class.c;h=d88b61797446fb194fc3b0f29004562b58d50100;hb=9849f6ffd9a4b165145e5553e1819cc85ec7867e;hp=022675e39c8cf9c73bf4b61c37b9f74f03fff88a;hpb=83e0efce601fcbc424e501844774dc64fe053453;p=babeltrace.git diff --git a/formats/ctf/ir/stream-class.c b/formats/ctf/ir/stream-class.c index 022675e3..d88b6179 100644 --- a/formats/ctf/ir/stream-class.c +++ b/formats/ctf/ir/stream-class.c @@ -668,11 +668,11 @@ int bt_ctf_stream_class_set_byte_order(struct bt_ctf_stream_class *stream_class, /* Set all events' native byte order */ for (i = 0; i < stream_class->event_classes->len; i++) { - bt_ctf_event_class_set_native_byte_order( - g_ptr_array_index(stream_class->event_classes, i), + struct bt_ctf_event_class *event_class; + + event_class = g_ptr_array_index(stream_class->event_classes, i); + bt_ctf_event_class_set_native_byte_order(event_class, stream_class->byte_order); - bt_ctf_event_class_freeze( - g_ptr_array_index(stream_class->event_classes, i)); } end: return ret;