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
commit 1c4627d35c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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, const char **fromP, const char *fromLim,
char **toP, const char *toLim) char **toP, const char *toLim)
{ {
char buf[XML_UTF8_ENCODE_MAX]; char buf[XML_UTF8_ENCODE_MAX] = {0};
for (;;) { for (;;) {
const char *utf8; const char *utf8;
int n; int n;