projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Make bt_ctf_event_class_create() create an empty context FT
[babeltrace.git]
/
lib
/
ctf-ir
/
event-class.c
diff --git
a/lib/ctf-ir/event-class.c
b/lib/ctf-ir/event-class.c
index e37331f091ed5bcbf6987d781fbfbf7f738e3fb0..8dc4619de4a338d924b486c3907d284bb9f7e4a5 100644
(file)
--- a/
lib/ctf-ir/event-class.c
+++ b/
lib/ctf-ir/event-class.c
@@
-66,6
+66,11
@@
struct bt_ctf_event_class *bt_ctf_event_class_create(const char *name)
goto error;
}
+ event_class->context = bt_ctf_field_type_structure_create();
+ if (!event_class->context) {
+ goto error;
+ }
+
event_class->attributes = bt_ctf_attributes_create();
if (!event_class->attributes) {
goto error;
This page took
0.024418 seconds
and
4
git commands to generate.