projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ctf.fs: bt_ctf_notif_iter_create(): assert() that all medops exist
[babeltrace.git]
/
formats
/
ctf
/
types
/
variant.c
diff --git
a/formats/ctf/types/variant.c
b/formats/ctf/types/variant.c
index 3c0c371f4d5922a708e300009fa910be3ab0d96d..fc7b7ad449d935ea4dcf9e32afda839463250141 100644
(file)
--- a/
formats/ctf/types/variant.c
+++ b/
formats/ctf/types/variant.c
@@
-28,11
+28,12
@@
#include <babeltrace/ctf/types.h>
#include <babeltrace/ctf/types.h>
-int ctf_variant_rw(struct bt_stream_pos *ppos, struct definition *definition)
+int ctf_variant_rw(struct bt_stream_pos *ppos, struct
bt_
definition *definition)
{
{
- struct declaration *declaration = definition->declaration;
+ struct
bt_
declaration *declaration = definition->declaration;
struct ctf_stream_pos *pos = ctf_pos(ppos);
struct ctf_stream_pos *pos = ctf_pos(ppos);
- ctf_align_pos(pos, declaration->alignment);
+ if (!ctf_align_pos(pos, declaration->alignment))
+ return -EFAULT;
return bt_variant_rw(ppos, definition);
}
return bt_variant_rw(ppos, definition);
}
This page took
0.02366 seconds
and
4
git commands to generate.