summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);