From 6101fbc18e43f0c3b6561440c79e7409610e18db Mon Sep 17 00:00:00 2001 From: Sebastian Pipping Date: Fri, 15 Jul 2022 23:23:47 +0200 Subject: [PATCH] lib: Address Cppcheck 2.8.1 warning expat/lib/xmlparse.c:4288:21: error: Uninitialized variable: &versionend [uninitvar] &version, &versionend, &encodingName, &newEncoding, &standalone)) { ^ --- expat/Changes | 1 + expat/lib/xmlparse.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/expat/Changes b/expat/Changes index 1b8244cb..d37459a1 100644 --- a/expat/Changes +++ b/expat/Changes @@ -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 diff --git a/expat/lib/xmlparse.c b/expat/lib/xmlparse.c index e986156e..7bcabf7f 100644 --- a/expat/lib/xmlparse.c +++ b/expat/lib/xmlparse.c @@ -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;