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 packet context on a non-frozen stream class
[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 edbd43b6948ab2747a6e635144dd01a53c5921b9..6f1ec13e0501213222b1d55efb68527e3a5ccc11 100644
(file)
--- a/
formats/ctf/ir/stream-class.c
+++ b/
formats/ctf/ir/stream-class.c
@@
-286,7
+286,7
@@
int bt_ctf_stream_class_set_packet_context_type(
{
int ret = 0;
- if (!stream_class || !packet_context_type) {
+ if (!stream_class || !packet_context_type
|| stream_class->frozen
) {
ret = -1;
goto end;
}
This page took
0.02357 seconds
and
4
git commands to generate.