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-Url: https://git.lttng.org./?a=commitdiff_plain;h=a90d21b3909d2e44882d6ac181bb35cee3a3f6a8;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) {