aboutsummaryrefslogtreecommitdiffstats
path: root/valid.c
diff options
context:
space:
mode:
authorDaniel Veillard <veillard@redhat.com>2014-02-06 10:47:20 +0100
committerDaniel Veillard <veillard@redhat.com>2014-02-06 10:47:20 +0100
commite18bce0d061e942284551b62f5c4c025ba320284 (patch)
treeae13d4223872250f9b3e7e4cbe944eab11af2d55 /valid.c
parent15d12040ff48c5190addd315092c9262fbe54e91 (diff)
downloadandroid_external_libxml2-e18bce0d061e942284551b62f5c4c025ba320284.tar.gz
android_external_libxml2-e18bce0d061e942284551b62f5c4c025ba320284.tar.bz2
android_external_libxml2-e18bce0d061e942284551b62f5c4c025ba320284.zip
fixing a ptotential uninitialized access
Diffstat (limited to 'valid.c')
-rw-r--r--valid.c2
1 files changed, 1 insertions, 1 deletions
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;