Skip to content

Commit

Permalink
Potential uninitialized arguments raised by scan
Browse files Browse the repository at this point in the history
* 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.
  • Loading branch information
veillard committed Sep 5, 2009
1 parent 13cee4e commit 1549561
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions parser.c
Expand Up @@ -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;
Expand Down Expand Up @@ -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))
Expand Down

0 comments on commit 1549561

Please sign in to comment.