[apr] Fix dead assignment and use of uninitialized variable in strings.

This commit is contained in:
Andrey Volk committed 2020-02-15 02:22:36 +04:00
1 parent c99149adc7
commit 5b63e4d045
2 files changed
+1 -2

No files matched your search

+1 -1
View File
@@ -124,7 +124,7 @@ APR_DECLARE(void *) apr_pmemdup(apr_pool_t *a, const void *m, apr_size_t n)
APR_DECLARE_NONSTD(char *) apr_pstrcat(apr_pool_t *a, ...)
{
char *cp, *argp, *res;
apr_size_t saved_lengths[MAX_SAVED_LENGTHS];
apr_size_t saved_lengths[MAX_SAVED_LENGTHS] = { 0 };
int nargs = 0;
/* Pass one --- find length of required string */