From: Philippe Proulx Date: Mon, 8 Feb 2016 07:38:25 +0000 (-0500) Subject: ir: freeze attributes when freezing an event X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=commitdiff_plain;h=fb88e5256bac24064b374b8f3c7ba77b8d4ac9c6 ir: freeze attributes when freezing an event Signed-off-by: Philippe Proulx Signed-off-by: Jérémie Galarneau --- diff --git a/formats/ctf/ir/event.c b/formats/ctf/ir/event.c index 85edf694..1e9f2b85 100644 --- a/formats/ctf/ir/event.c +++ b/formats/ctf/ir/event.c @@ -525,6 +525,10 @@ int bt_ctf_event_class_set_stream_id(struct bt_ctf_event_class *event_class, ret = bt_ctf_attributes_set_field_value(event_class->attributes, "stream_id", obj); + if (event_class->frozen) { + bt_ctf_attributes_freeze(event_class->attributes); + } + end: BT_PUT(obj); return ret;