1
0
mirror of https://github.com/apache/httpd.git synced 2026-01-13 21:42:17 +03:00

Save a few bytes in conf pool when parsing some directives. Use temp_pool when applicable.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1657692 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Christophe Jaillet
2015-02-05 21:03:04 +00:00
parent be32097e6c
commit 25a2e41ea7
3 changed files with 4 additions and 4 deletions

View File

@@ -74,7 +74,7 @@ AP_DECLARE(void) ap_unixd_set_rlimit(cmd_parms *cmd, struct rlimit **plimit,
return;
}
if (*(str = ap_getword_conf(cmd->pool, &arg)) != '\0') {
if (*(str = ap_getword_conf(cmd->temp_pool, &arg)) != '\0') {
if (!strcasecmp(str, "max")) {
cur = limit->rlim_max;
}
@@ -88,7 +88,7 @@ AP_DECLARE(void) ap_unixd_set_rlimit(cmd_parms *cmd, struct rlimit **plimit,
return;
}
if (arg2 && (*(str = ap_getword_conf(cmd->pool, &arg2)) != '\0')) {
if (arg2 && (*(str = ap_getword_conf(cmd->temp_pool, &arg2)) != '\0')) {
max = atol(str);
}