summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Pipping <sebastian@pipping.org>2021-12-25 21:11:03 +0100
committerGitHub <noreply@github.com>2021-12-25 21:11:03 +0100
commit9542ad247130801eb226225299d01a17c0582f08 (patch)
tree2c5e9ab067149e8a73994c9a9ee7626c511ba5bf
parent9c42ebdd4a3b901dd47fb20925291ff10698b610 (diff)
parent5bab452b4952ab417a0a47ce4a6185e94e22bd0c (diff)
downloadlibexpat-git-9542ad247130801eb226225299d01a17c0582f08.tar.gz
Merge pull request #527 from libexpat/address-compiler-warnings
lib: Address GCC 11.2.1 compiler warning
-rw-r--r--expat/Changes4
-rw-r--r--expat/lib/xmltok_ns.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/expat/Changes b/expat/Changes
index 6e7f7392..af5e3cdb 100644
--- a/expat/Changes
+++ b/expat/Changes
@@ -2,6 +2,10 @@ NOTE: We are looking for help with a few things:
https://github.com/libexpat/libexpat/labels/help%20wanted
If you can help, please get in touch. Thanks!
+Release x.x.x xxx xxxxxxxx xx xxxx
+ Other changes:
+ #527 Address compiler warnings
+
Release 2.4.2 Sun December 19 2021
Other changes:
#509 #510 Link againgst libm for function "isnan"
diff --git a/expat/lib/xmltok_ns.c b/expat/lib/xmltok_ns.c
index 5fd83922..86ea6f0e 100644
--- a/expat/lib/xmltok_ns.c
+++ b/expat/lib/xmltok_ns.c
@@ -93,7 +93,7 @@ NS(XmlInitEncoding)(INIT_ENCODING *p, const ENCODING **encPtr,
static const ENCODING *
NS(findEncoding)(const ENCODING *enc, const char *ptr, const char *end) {
# define ENCODING_MAX 128
- char buf[ENCODING_MAX];
+ char buf[ENCODING_MAX] = "";
char *p = buf;
int i;
XmlUtf8Convert(enc, &ptr, end, &p, p + ENCODING_MAX - 1);