Fix memory initialization for parser test
[babeltrace.git] / formats / ctf / metadata / ctf-parser-test.c
index ab4bc30ced547f83052351e33c52078264b6802d..9d1025155b094085fc4dbbb2548f5177481b85ab 100644 (file)
@@ -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.025567 seconds and 4 git commands to generate.