follow-up to r1554161, r1554168, r1554170, r1554175, r1554188, and r1554195:
axe unnecessary initialization/pool allocation
Submitted by: trawick
Reviewed/backported by: jim
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@
1560083 13f79535-47bb-0310-9956-
ffa450edef68
PATCHES ACCEPTED TO BACKPORT FROM TRUNK:
[ start all new proposals below, under PATCHES PROPOSED. ]
- * mod_auth*z scan-build warnings in new code for 2.4.8
- trunk patch: https://svn.apache.org/r1558483
- 2.4.x patch: trunk patch works
- +1: trawick, covener, jim
-
* ssl_util_ocsp scan-build warning in old code
(the code is clearly wrong but completely harmless AFAICT)
trunk patch: https://svn.apache.org/r1534890
const void **parsed_require_line)
{
const char *expr_err = NULL;
- ap_expr_info_t *expr = apr_pcalloc(cmd->pool, sizeof(*expr));
+ ap_expr_info_t *expr;
expr = ap_expr_parse_cmd(cmd, require_line, AP_EXPR_FLAG_STRING_RESULT,
&expr_err, NULL);
const void **parsed_require_line)
{
const char *expr_err = NULL;
- ap_expr_info_t *expr = apr_pcalloc(cmd->pool, sizeof(*expr));
+ ap_expr_info_t *expr;
expr = ap_expr_parse_cmd(cmd, require_line, AP_EXPR_FLAG_STRING_RESULT,
&expr_err, NULL);
const void **parsed_require_line)
{
const char *expr_err = NULL;
- ap_expr_info_t *expr = apr_pcalloc(cmd->pool, sizeof(*expr));
+ ap_expr_info_t *expr;
expr = ap_expr_parse_cmd(cmd, require_line, AP_EXPR_FLAG_STRING_RESULT,
&expr_err, NULL);
const void **parsed_require_line)
{
const char *expr_err = NULL;
- ap_expr_info_t *expr = apr_pcalloc(cmd->pool, sizeof(*expr));
+ ap_expr_info_t *expr;
expr = ap_expr_parse_cmd(cmd, require_line, AP_EXPR_FLAG_STRING_RESULT,
&expr_err, NULL);
const void **parsed_require_line)
{
const char *expr_err = NULL;
- ap_expr_info_t *expr = apr_pcalloc(cmd->pool, sizeof(*expr));
+ ap_expr_info_t *expr;
expr = ap_expr_parse_cmd(cmd, require_line, AP_EXPR_FLAG_STRING_RESULT,
&expr_err, NULL);
const void **parsed_require_line)
{
const char *expr_err = NULL;
- ap_expr_info_t *expr = apr_pcalloc(cmd->pool, sizeof(*expr));
+ ap_expr_info_t *expr;
expr = ap_expr_parse_cmd(cmd, require_line, AP_EXPR_FLAG_STRING_RESULT,
&expr_err, NULL);