Add out-of-bound checks
[babeltrace.git] / formats / ctf-text / types / variant.c
index 5a9df0aa9c999eee01f3a9b22342ff4b963d02e7..b4b72e16afeadb33420ec4998416dd8512402a34 100644 (file)
@@ -19,7 +19,7 @@
 #include <babeltrace/ctf-text/types.h>
 #include <stdio.h>
 
 #include <babeltrace/ctf-text/types.h>
 #include <stdio.h>
 
-void ctf_text_variant_write(struct stream_pos *pos, struct definition *definition)
+int ctf_text_variant_write(struct stream_pos *pos, struct definition *definition)
 {
 {
-       variant_rw(pos, definition);
+       return variant_rw(pos, definition);
 }
 }
This page took 0.022999 seconds and 4 git commands to generate.