lib: Address Cppcheck 2.8.1 warning

expat/lib/xmlparse.c:4288:21: error: Uninitialized variable: &versionend [uninitvar]
          &version, &versionend, &encodingName, &newEncoding, &standalone)) {
                    ^
This commit is contained in:
Sebastian Pipping 2022-07-15 23:23:47 +02:00
parent 4e91da28fb
commit 6101fbc18e
2 changed files with 2 additions and 1 deletions

View file

@ -6,6 +6,7 @@ Release x.x.x xxx xxxxx xx xxxx
Other changes:
#597 #599 Windows|CMake: Add missing -DXML_STATIC to test runners
and fuzzers
#610 Address Cppcheck 2.8.1 warning
Infrastructure:
#597 #598 CI: Windows: Start covering MSVC 2022

View file

@ -4271,7 +4271,7 @@ processXmlDecl(XML_Parser parser, int isGeneralTextEntity, const char *s,
const XML_Char *storedEncName = NULL;
const ENCODING *newEncoding = NULL;
const char *version = NULL;
const char *versionend;
const char *versionend = NULL;
const XML_Char *storedversion = NULL;
int standalone = -1;