[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:28:41 +04:00
parent 316a190042
commit 30e5cc314a
1 changed files with 1 additions and 1 deletions

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;