[libxml2] fixing a ptotential uninitialized access



commit e18bce0d061e942284551b62f5c4c025ba320284
Author: Daniel Veillard <veillard redhat com>
Date:   Thu Feb 6 10:47:20 2014 +0100

    fixing a ptotential uninitialized access

 valid.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/valid.c b/valid.c
index d3c706b..aedd9d7 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;
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]