From 103aadbc6626b32d0cec8471bcab8bce6d882e6b Mon Sep 17 00:00:00 2001 From: makise-homura Date: Wed, 14 Aug 2024 23:15:30 +0300 Subject: [PATCH] parser: Suppress EDG maybe-uninitialized warning --- parser.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/parser.c b/parser.c index 6827a092..c85b1346 100644 --- a/parser.c +++ b/parser.c @@ -7609,7 +7609,7 @@ xmlHandleUndeclaredEntity(xmlParserCtxtPtr ctxt, const xmlChar *name) { static xmlEntityPtr xmlLookupGeneralEntity(xmlParserCtxtPtr ctxt, const xmlChar *name, int inAttr) { - xmlEntityPtr ent; + xmlEntityPtr ent = NULL; /* * Predefined entities override any extra definition @@ -9372,8 +9372,8 @@ next_attr: if (defaults != NULL) { for (i = 0; i < defaults->nbAttrs; i++) { xmlDefAttr *attr = &defaults->attrs[i]; - const xmlChar *nsuri; - unsigned hashValue, uriHashValue; + const xmlChar *nsuri = NULL; + unsigned hashValue, uriHashValue = 0; int res; attname = attr->name.name;