1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-03-21 22:50:08 +03:00

fixing a ptotential uninitialized access

This commit is contained in:
Daniel Veillard 2014-02-06 10:47:20 +01:00
parent 15d12040ff
commit e18bce0d06

View File

@ -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;