Mercurial > hg > nginx
diff src/core/ngx_conf_file.c @ 46:f84a648211f4
nginx-0.0.1-2003-01-10-20:45:47 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Fri, 10 Jan 2003 17:45:47 +0000 |
parents | f1ee46c036a4 |
children | 27b628ef907e |
line wrap: on
line diff
--- a/src/core/ngx_conf_file.c +++ b/src/core/ngx_conf_file.c @@ -101,7 +101,9 @@ ngx_log_debug(cf->log, "token %d" _ rc); ngx_log_debug(cf->log, "command '%s'" _ cmd->name.data); - if (!(cmd->type & argument_number[cf->args->nelts - 1])) { + if (!(cmd->type & NGX_CONF_ANY) + && !(cmd->type & argument_number[cf->args->nelts - 1])) + { ngx_log_error(NGX_LOG_EMERG, cf->log, 0, "invalid number arguments in " "directive \"%s\" in %s:%d",