Fix: CTF 1.8 mandates that event "fields" must be a structure
[babeltrace.git] / formats / ctf / ir / event.c
index 2c1dad47500b1480569369ab581d776bb9933ee1..e51087ba14a05528494ed674f1d00dfa7fa4c8b6 100644 (file)
@@ -158,7 +158,8 @@ int bt_ctf_event_class_set_payload_type(struct bt_ctf_event_class *event_class,
 {
        int ret = 0;
 
-       if (!event_class || !payload) {
+       if (!event_class || !payload ||
+               bt_ctf_field_type_get_type_id(payload) != CTF_TYPE_STRUCT) {
                ret = -1;
                goto end;
        }
This page took 0.024085 seconds and 4 git commands to generate.