X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=blobdiff_plain;f=formats%2Fctf%2Fir%2Fevent-types.c;h=91ab78c86bc05a8196daab4ec2f95f34e9d21c8e;hp=b336889b029efb208c525a17fb32e44b4301f048;hb=46caf2cb05e3c88e0c42a8507aeb524b8d2fc6df;hpb=5cec03e402aaee5fe314e03f366363a617a7d0c8 diff --git a/formats/ctf/ir/event-types.c b/formats/ctf/ir/event-types.c index b336889b..91ab78c8 100644 --- a/formats/ctf/ir/event-types.c +++ b/formats/ctf/ir/event-types.c @@ -1286,6 +1286,8 @@ struct bt_ctf_field_type *bt_ctf_field_type_variant_create( } bt_ctf_field_type_init(&variant->parent); + /* A variant's alignment is undefined */ + variant->parent.declaration->alignment = 0; return &variant->parent; error: return NULL;