summaryrefslogtreecommitdiffhomepage
path: root/src/http/modules
diff options
context:
space:
mode:
authorwillmafh <willmafh@hotmail.com>2025-09-08 22:03:30 +0800
committerSergey Kandaurov <s.kandaurov@f5.com>2025-12-23 22:40:33 +0400
commitffad76677c1a3a96b0daed4dd4df0bd9e9e6aa65 (patch)
tree50ba1cbb645a590628a568429f36e720334e2fb3 /src/http/modules
parent1d6a17b02f3546a9494ad62a38ad314b9664b603 (diff)
downloadnginx-ffad76677c1a3a96b0daed4dd4df0bd9e9e6aa65.tar.gz
nginx-ffad76677c1a3a96b0daed4dd4df0bd9e9e6aa65.tar.bz2
Fixed inaccurate index directive error report.
Diffstat (limited to 'src/http/modules')
-rw-r--r--src/http/modules/ngx_http_index_module.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/http/modules/ngx_http_index_module.c b/src/http/modules/ngx_http_index_module.c
index 2ee1dd5a4..18e7049c5 100644
--- a/src/http/modules/ngx_http_index_module.c
+++ b/src/http/modules/ngx_http_index_module.c
@@ -490,7 +490,7 @@ ngx_http_index_set_index(ngx_conf_t *cf, ngx_command_t *cmd, void *conf)
if (value[i].len == 0) {
ngx_conf_log_error(NGX_LOG_EMERG, cf, 0,
"index \"%V\" in \"index\" directive is invalid",
- &value[1]);
+ &value[i]);
return NGX_CONF_ERROR;
}