Fix: possible evaluation of garbage values in fini_validation_ctx()
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 26 Mar 2015 19:02:40 +0000 (15:02 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Tue, 28 Apr 2015 14:31:28 +0000 (10:31 -0400)
Zero-out struct validation_ctx on creation.

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
tests/regression/tools/mi/validate_xml.c

index e3c6350902d444dce687afdcd6a76fadb7705707..f875853477859e52dfa9779403c409a83bbba582 100644 (file)
@@ -163,7 +163,7 @@ end:
 int main(int argc, char **argv, char *env[])
 {
        int ret;
-       struct validation_ctx ctx;
+       struct validation_ctx ctx = { 0 };
 
        /* Check if we have all argument */
        if (argc < 3) {
This page took 0.026895 seconds and 4 git commands to generate.