Mercurial > hg > nginx
comparison 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 |
comparison
equal
deleted
inserted
replaced
45:f1ee46c036a4 | 46:f84a648211f4 |
---|---|
99 && ngx_strcmp(name->data, cmd->name.data) == 0) | 99 && ngx_strcmp(name->data, cmd->name.data) == 0) |
100 { | 100 { |
101 | 101 |
102 ngx_log_debug(cf->log, "command '%s'" _ cmd->name.data); | 102 ngx_log_debug(cf->log, "command '%s'" _ cmd->name.data); |
103 | 103 |
104 if (!(cmd->type & argument_number[cf->args->nelts - 1])) { | 104 if (!(cmd->type & NGX_CONF_ANY) |
105 && !(cmd->type & argument_number[cf->args->nelts - 1])) | |
106 { | |
105 ngx_log_error(NGX_LOG_EMERG, cf->log, 0, | 107 ngx_log_error(NGX_LOG_EMERG, cf->log, 0, |
106 "invalid number arguments in " | 108 "invalid number arguments in " |
107 "directive \"%s\" in %s:%d", | 109 "directive \"%s\" in %s:%d", |
108 name->data, | 110 name->data, |
109 cf->conf_file->file.name.data, | 111 cf->conf_file->file.name.data, |