summaryrefslogtreecommitdiff
path: root/os
diff options
context:
space:
mode:
authorChristophe Jaillet <jailletc36@apache.org>2015-02-05 21:03:04 +0000
committerChristophe Jaillet <jailletc36@apache.org>2015-02-05 21:03:04 +0000
commit25a2e41ea7e474100375986de0a0d792ff8094de (patch)
tree465a7fc8138a408991b5a805b9ee8dd8c696b69f /os
parentbe32097e6c360f5cea91969409c33bfc1d2d2469 (diff)
downloadhttpd-25a2e41ea7e474100375986de0a0d792ff8094de.tar.gz
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
Diffstat (limited to 'os')
-rw-r--r--os/unix/unixd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/os/unix/unixd.c b/os/unix/unixd.c
index bcb97a57db..d7042bf686 100644
--- a/os/unix/unixd.c
+++ b/os/unix/unixd.c
@@ -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);
}