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

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

View File

@ -110,7 +110,6 @@ static char *apr_cvt(double arg, int ndigits, int *decpt, int *sign,
arg = -arg; arg = -arg;
} }
arg = modf(arg, &fi); arg = modf(arg, &fi);
p1 = &buf[NDIG];
/* /*
* Do integer part * Do integer part
*/ */

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, ...) APR_DECLARE_NONSTD(char *) apr_pstrcat(apr_pool_t *a, ...)
{ {
char *cp, *argp, *res; char *cp, *argp, *res;
apr_size_t saved_lengths[MAX_SAVED_LENGTHS]; apr_size_t saved_lengths[MAX_SAVED_LENGTHS] = { 0 };
int nargs = 0; int nargs = 0;
/* Pass one --- find length of required string */ /* Pass one --- find length of required string */