From: Jérémie Galarneau Date: Thu, 26 Mar 2015 19:02:40 +0000 (-0400) Subject: Fix: possible evaluation of garbage values in fini_validation_ctx() X-Git-Tag: v2.6.1~114 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=d32269275afbd60391c0b893d82155285ca64253;p=lttng-tools.git Fix: possible evaluation of garbage values in fini_validation_ctx() Zero-out struct validation_ctx on creation. Signed-off-by: Jérémie Galarneau --- diff --git a/tests/regression/tools/mi/validate_xml.c b/tests/regression/tools/mi/validate_xml.c index e3c635090..f87585347 100644 --- a/tests/regression/tools/mi/validate_xml.c +++ b/tests/regression/tools/mi/validate_xml.c @@ -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) {