So the message 02173 can never trigger.
Actually, this is not a problem because all calls to 'ap_unixd_set_rlimit' are done in configuration parsing functions guarded with AP_INIT_TAKE12, so we are guaranteed to have something.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@
1551005 13f79535-47bb-0310-9956-
ffa450edef68
return;
}
- if ((str = ap_getword_conf(cmd->pool, &arg))) {
+ if (*(str = ap_getword_conf(cmd->pool, &arg)) != '\0') {
if (!strcasecmp(str, "max")) {
cur = limit->rlim_max;
}
return;
}
- if (arg2 && (str = ap_getword_conf(cmd->pool, &arg2))) {
+ if (arg2 && (*(str = ap_getword_conf(cmd->pool, &arg2)) != '\0')) {
max = atol(str);
}