[libxml2] fixing a ptotential uninitialized access
- From: Daniel Veillard <veillard src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libxml2] fixing a ptotential uninitialized access
- Date: Thu, 6 Feb 2014 13:22:34 +0000 (UTC)
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]