projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix: Only allow setting a stream class when not frozen
[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 6f1ec13e0501213222b1d55efb68527e3a5ccc11..058f4b29ecd1765f6a7d0521d58c02eb559a73c5 100644
(file)
--- a/
formats/ctf/ir/stream-class.c
+++ b/
formats/ctf/ir/stream-class.c
@@
-151,7
+151,7
@@
int bt_ctf_stream_class_set_id(struct bt_ctf_stream_class *stream_class,
{
int ret = 0;
- if (!stream_class) {
+ if (!stream_class
|| stream_class->frozen
) {
ret = -1;
goto end;
}
This page took
0.023198 seconds
and
4
git commands to generate.