Implement bt_ctf_clock_value interface
[babeltrace.git] / formats / ctf / ir / field-types.c
index 4f2bc03449bd438c5d3f648907aab4c66c9d6dac..49919ca2fe008796111955d76655c2f72f733d2a 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;
        }
@@ -2372,7 +2372,6 @@ void bt_ctf_field_type_set_native_byte_order(struct bt_ctf_field_type *type,
        }
 }
 
-BT_HIDDEN
 struct bt_ctf_field_type *bt_ctf_field_type_copy(struct bt_ctf_field_type *type)
 {
        struct bt_ctf_field_type *copy = NULL;
This page took 0.023418 seconds and 4 git commands to generate.