projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
ir: allow the creation of an empty clock (nameless)
[babeltrace.git]
/
formats
/
ctf
/
ir
/
stream-class.c
diff --git
a/formats/ctf/ir/stream-class.c
b/formats/ctf/ir/stream-class.c
index 877a9c4aa595d92c3fa02b93e44cbcdbc0c17e9b..4c59744e826bab3e1d15aff9f249c02e8515364f 100644
(file)
--- a/
formats/ctf/ir/stream-class.c
+++ b/
formats/ctf/ir/stream-class.c
@@
-147,7
+147,8
@@
int bt_ctf_stream_class_set_clock(struct bt_ctf_stream_class *stream_class,
int ret = 0;
struct bt_ctf_field_type *timestamp_field = NULL;
- if (!stream_class || !clock || stream_class->frozen) {
+ if (!stream_class || stream_class->frozen ||
+ !bt_ctf_clock_is_valid(clock)) {
ret = -1;
goto end;
}
This page took
0.025219 seconds
and
4
git commands to generate.