From 30e5cc314af26f062829281a5f4c528ac6b978af Mon Sep 17 00:00:00 2001 From: Andrey Volk Date: Fri, 21 Feb 2020 21:28:41 +0400 Subject: [PATCH] [apr-util] scan-build: Fix "Assigned value is garbage or undefined" in unknown_toUtf8 --- libs/apr-util/xml/expat/lib/xmltok.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/apr-util/xml/expat/lib/xmltok.c b/libs/apr-util/xml/expat/lib/xmltok.c index e3fe3f788f..74c681f1e6 100644 --- a/libs/apr-util/xml/expat/lib/xmltok.c +++ b/libs/apr-util/xml/expat/lib/xmltok.c @@ -1225,7 +1225,7 @@ void unknown_toUtf8(const ENCODING *enc, const char **fromP, const char *fromLim, char **toP, const char *toLim) { - char buf[XML_UTF8_ENCODE_MAX]; + char buf[XML_UTF8_ENCODE_MAX] = {0}; for (;;) { const char *utf8; int n;