[libxml2] Potential uninitialized arguments raised by scan
- From: Daniel Veillard <veillard src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [libxml2] Potential uninitialized arguments raised by scan
- Date: Sat, 5 Sep 2009 13:06:18 +0000 (UTC)
commit 154956103dbae7ef90daf99ad8196b471a5d2923
Author: Daniel Veillard <veillard redhat com>
Date: Sat Sep 5 15:04:41 2009 +0200
Potential uninitialized arguments raised by scan
* parser.c: ctxt->sax2 is not supposed to change suring parsing
but better safe than sorry and initialize prefix and URI used in
SAX2 callbacks.
parser.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/parser.c b/parser.c
index 6ae2d77..4b41ab9 100644
--- a/parser.c
+++ b/parser.c
@@ -9407,8 +9407,8 @@ xmlParseContent(xmlParserCtxtPtr ctxt) {
void
xmlParseElement(xmlParserCtxtPtr ctxt) {
const xmlChar *name;
- const xmlChar *prefix;
- const xmlChar *URI;
+ const xmlChar *prefix = NULL;
+ const xmlChar *URI = NULL;
xmlParserNodeInfo node_info;
int line, tlen;
xmlNodePtr ret;
@@ -10784,8 +10784,8 @@ xmlParseTryOrFinish(xmlParserCtxtPtr ctxt, int terminate) {
break;
case XML_PARSER_START_TAG: {
const xmlChar *name;
- const xmlChar *prefix;
- const xmlChar *URI;
+ const xmlChar *prefix = NULL;
+ const xmlChar *URI = NULL;
int nsNr = ctxt->nsNr;
if ((avail < 2) && (ctxt->inputNr == 1))
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]