ir: allow the creation of an empty clock (nameless)
[babeltrace.git] / formats / ctf / ir / field-types.c
index 4f2bc03449bd438c5d3f648907aab4c66c9d6dac..5aecd99c4fbfc5f95d2a2a12b9ce3c9e0ba5ec2f 100644 (file)
@@ -844,7 +844,7 @@ int bt_ctf_field_type_integer_set_mapped_clock(
        struct bt_ctf_field_type_integer *integer;
        int ret = 0;
 
-       if (!type || type->frozen) {
+       if (!type || type->frozen || !bt_ctf_clock_is_valid(clock)) {
                ret = -1;
                goto end;
        }
This page took 0.024921 seconds and 4 git commands to generate.