From: Philippe Proulx Date: Mon, 8 Feb 2016 07:14:51 +0000 (-0500) Subject: ir: allow to set variant FT's tag FT even when frozen X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=f90b8e2662a12070fe474f21e0faf9243938e71d;p=deliverable%2Fbabeltrace.git ir: allow to set variant FT's tag FT even when frozen Signed-off-by: Philippe Proulx Signed-off-by: Jérémie Galarneau --- diff --git a/formats/ctf/ir/event-types.c b/formats/ctf/ir/event-types.c index 37a0d14f8..1c5e4765c 100644 --- a/formats/ctf/ir/event-types.c +++ b/formats/ctf/ir/event-types.c @@ -2590,8 +2590,8 @@ int bt_ctf_field_type_variant_set_tag(struct bt_ctf_field_type *type, int ret = 0; struct bt_ctf_field_type_variant *variant; - if (!type || !tag || type->frozen || - bt_ctf_field_type_get_type_id(tag) != CTF_TYPE_ENUM) { + if (!type || !tag || + bt_ctf_field_type_get_type_id(tag) != CTF_TYPE_ENUM) { ret = -1; goto end; }