From a90d21b3909d2e44882d6ac181bb35cee3a3f6a8 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Galarneau?= Date: Thu, 26 Mar 2015 15:02:40 -0400 Subject: [PATCH] Fix: possible evaluation of garbage values in fini_validation_ctx() MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Zero-out struct validation_ctx on creation. Signed-off-by: Jérémie Galarneau --- tests/regression/tools/mi/validate_xml.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- 2.34.1