Fixes in babeltrace core to support non-CTF traces
[babeltrace.git] / lib / trace-collection.c
index b854c97440422b009ce12111d54f136f94431515..fa1497acbfc34897924b3e58fafda0a59c0cb6e9 100644 (file)
@@ -161,6 +161,9 @@ int bt_trace_collection_add(struct trace_collection *tc,
        if (!tc || !trace)
                return -EINVAL;
 
+       if (!trace->clocks)
+               return 0;
+
        if (tc->array->len > 1) {
                struct clock_match clock_match = {
                        .clocks = tc->clocks,
This page took 0.022622 seconds and 4 git commands to generate.