Export the babeltrace API in babeltrace.h
[babeltrace.git] / formats / ctf / metadata / ctf-parser-test.c
index ab4bc30ced547f83052351e33c52078264b6802d..e84dc1289c168c124c7e6109a47fc795b88b58cb 100644 (file)
@@ -21,7 +21,7 @@
 #include <glib.h>
 #include <errno.h>
 #include <endian.h>
-#include <babeltrace/babeltrace.h>
+#include <babeltrace/babeltrace-internal.h>
 #include <babeltrace/ctf/metadata.h>
 #include "ctf-scanner.h"
 #include "ctf-parser.h"
@@ -60,6 +60,7 @@ int main(int argc, char **argv)
                goto end;
        }
        trace = malloc(sizeof(*trace));
+       memset(trace, 0, sizeof(*trace));
        ret = ctf_visitor_construct_metadata(stdout, 0, &scanner->ast->root,
                        trace, BYTE_ORDER);
        if (ret) {
This page took 0.029376 seconds and 4 git commands to generate.