X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=blobdiff_plain;f=types%2Fvariant.c;h=ea20808b7205f1e31ea1fee4dce603e5584359bf;hp=98f687452696e2e923522b6c911dcf980f2cdfef;hb=05628561ca57ff5d269571a72a12cb86854c5f70;hpb=64893f33bdc4bfe20820928b28731277797e41fc diff --git a/types/variant.c b/types/variant.c index 98f68745..ea20808b 100644 --- a/types/variant.c +++ b/types/variant.c @@ -81,6 +81,7 @@ struct type_variant *variant_type_new(const char *name, sizeof(struct type_field), DEFAULT_NR_STRUCT_FIELDS); variant_type->scope = new_type_scope(parent_scope); + type->id = CTF_TYPE_VARIANT; type->name = g_quark_from_string(name); type->alignment = 1; type->copy = variant_copy;