From e18bce0d061e942284551b62f5c4c025ba320284 Mon Sep 17 00:00:00 2001 From: Daniel Veillard Date: Thu, 6 Feb 2014 10:47:20 +0100 Subject: fixing a ptotential uninitialized access --- valid.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'valid.c') diff --git a/valid.c b/valid.c index d3c706bf..aedd9d7a 100644 --- a/valid.c +++ b/valid.c @@ -6949,7 +6949,7 @@ xmlValidGetValidElements(xmlNode *prev, xmlNode *next, const xmlChar **names, int max) { xmlValidCtxt vctxt; int nb_valid_elements = 0; - const xmlChar *elements[256]; + const xmlChar *elements[256]={0}; int nb_elements = 0, i; const xmlChar *name; -- cgit v1.2.3