mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2024-12-24 21:33:51 +03:00
parser: Suppress EDG maybe-uninitialized warning
This commit is contained in:
parent
f2c48847fa
commit
103aadbc66
6
parser.c
6
parser.c
@ -7609,7 +7609,7 @@ xmlHandleUndeclaredEntity(xmlParserCtxtPtr ctxt, const xmlChar *name) {
|
|||||||
|
|
||||||
static xmlEntityPtr
|
static xmlEntityPtr
|
||||||
xmlLookupGeneralEntity(xmlParserCtxtPtr ctxt, const xmlChar *name, int inAttr) {
|
xmlLookupGeneralEntity(xmlParserCtxtPtr ctxt, const xmlChar *name, int inAttr) {
|
||||||
xmlEntityPtr ent;
|
xmlEntityPtr ent = NULL;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Predefined entities override any extra definition
|
* Predefined entities override any extra definition
|
||||||
@ -9372,8 +9372,8 @@ next_attr:
|
|||||||
if (defaults != NULL) {
|
if (defaults != NULL) {
|
||||||
for (i = 0; i < defaults->nbAttrs; i++) {
|
for (i = 0; i < defaults->nbAttrs; i++) {
|
||||||
xmlDefAttr *attr = &defaults->attrs[i];
|
xmlDefAttr *attr = &defaults->attrs[i];
|
||||||
const xmlChar *nsuri;
|
const xmlChar *nsuri = NULL;
|
||||||
unsigned hashValue, uriHashValue;
|
unsigned hashValue, uriHashValue = 0;
|
||||||
int res;
|
int res;
|
||||||
|
|
||||||
attname = attr->name.name;
|
attname = attr->name.name;
|
||||||
|
Loading…
Reference in New Issue
Block a user