Update CTF-Writer and CTF-IR copyrights
[babeltrace.git] / formats / ctf / ir / event-types.c
index 7c5047f92aba18b5a67831435d1abdf1f774f1a2..250d95953749e09ff22d4a6a0efbedaad5926878 100644 (file)
@@ -3,7 +3,7 @@
  *
  * Babeltrace CTF Writer
  *
- * Copyright 2013 EfficiOS Inc.
+ * Copyright 2013, 2014 Jérémie Galarneau <jeremie.galarneau@efficios.com>
  *
  * Author: Jérémie Galarneau <jeremie.galarneau@efficios.com>
  *
@@ -359,6 +359,10 @@ struct bt_ctf_field_type *bt_ctf_field_type_enumeration_create(
                goto error;
        }
 
+       if (integer_container_type->declaration->id != CTF_TYPE_INTEGER) {
+               goto error;
+       }
+
        enumeration = g_new0(struct bt_ctf_field_type_enumeration, 1);
        if (!enumeration) {
                goto error;
This page took 0.024664 seconds and 4 git commands to generate.