diff --git a/tests/virschematest.c b/tests/virschematest.c index 45960ba2826ac918b00a880631d38372677ab996..c9cc314c62e96a7dfc85ecfe39efc4a1b65ce94a 100644 --- a/tests/virschematest.c +++ b/tests/virschematest.c @@ -173,6 +173,8 @@ mymain(void) int ret = 0; struct testSchemaFileData data; + memset(&data, 0, sizeof(data)); + #define DO_TEST(sch, ...) \ do { \ data.schema = sch; \