X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=lib%2Ftrace-collection.c;h=fa1497acbfc34897924b3e58fafda0a59c0cb6e9;hb=788b424d206d7ce49d60803c3f5ee75a3fc60097;hp=b854c97440422b009ce12111d54f136f94431515;hpb=92c6a024cd3e81293bd39fd2b322e12ce57ea502;p=babeltrace.git diff --git a/lib/trace-collection.c b/lib/trace-collection.c index b854c974..fa1497ac 100644 --- a/lib/trace-collection.c +++ b/lib/trace-collection.c @@ -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,