From f90b8e2662a12070fe474f21e0faf9243938e71d Mon Sep 17 00:00:00 2001 From: Philippe Proulx Date: Mon, 8 Feb 2016 02:14:51 -0500 Subject: [PATCH] ir: allow to set variant FT's tag FT even when frozen MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Philippe Proulx Signed-off-by: Jérémie Galarneau --- formats/ctf/ir/event-types.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; } -- 2.34.1