Merge pull request #404 from signalwire/apr_util_utf8

[apr-util] scan-build: Fix "Assigned value is garbage or undefined" in unknown_toUtf8
This commit is contained in:
Andrey Volk
2020-02-21 21:31:33 +04:00
committed by GitHub

View File

@@ -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;