From: Stefan Fritsch Date: Sun, 22 Aug 2010 10:26:18 +0000 (+0000) Subject: Simplify code as noted by Jeff. X-Git-Tag: 2.3.8~8 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=58570af105eabcf02e4fd0f54929e99adf791dea;p=thirdparty%2Fapache%2Fhttpd.git Simplify code as noted by Jeff. arg can't be NULL and the message created by missing_container_arg() is good enough git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@987860 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/server/core.c b/server/core.c index cfff20541ce..3cd71164794 100644 --- a/server/core.c +++ b/server/core.c @@ -1735,11 +1735,8 @@ static const char *dirsection(cmd_parms *cmd, void *mconfig, const char *arg) arg = apr_pstrndup(cmd->pool, arg, endp - arg); - if (!arg || !arg[0]) { - if (thiscmd->cmd_data) - return " block must specify a path"; - else - return " block must specify a path"; + if (!arg[0]) { + return missing_container_arg(cmd); } cmd->path = ap_getword_conf(cmd->pool, &arg);