Add out-of-bound checks
[babeltrace.git] / formats / ctf / types / variant.c
index 13b97cf7ce50d279895221ecd307fb5e0db482c0..25c189dd5dc6f8c9314d8299033fed739432124b 100644 (file)
 
 #include <babeltrace/ctf/types.h>
 
-void ctf_variant_rw(struct stream_pos *ppos, struct definition *definition)
+int ctf_variant_rw(struct stream_pos *ppos, struct definition *definition)
 {
        struct declaration *declaration = definition->declaration;
        struct ctf_stream_pos *pos = ctf_pos(ppos);
 
        ctf_align_pos(pos, declaration->alignment);
-       variant_rw(ppos, definition);
+       return variant_rw(ppos, definition);
 }
This page took 0.024228 seconds and 4 git commands to generate.