From 58570af105eabcf02e4fd0f54929e99adf791dea Mon Sep 17 00:00:00 2001 From: Stefan Fritsch Date: Sun, 22 Aug 2010 10:26:18 +0000 Subject: [PATCH] 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 --- server/core.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/server/core.c b/server/core.c index cfff20541c..3cd7116479 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); -- 2.50.1