[nginx] Index: fixed error message about empty index.
Maxim Dounin
mdounin at mdounin.ru
Tue May 12 22:16:27 UTC 2026
details: http://freenginx.org/hg/nginx/rev/207b425c3dba
branches:
changeset: 9514:207b425c3dba
user: Maxim Dounin <mdounin at mdounin.ru>
date: Wed May 13 01:15:32 2026 +0300
description:
Index: fixed error message about empty index.
diffstat:
src/http/modules/ngx_http_index_module.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (12 lines):
diff --git a/src/http/modules/ngx_http_index_module.c b/src/http/modules/ngx_http_index_module.c
--- a/src/http/modules/ngx_http_index_module.c
+++ b/src/http/modules/ngx_http_index_module.c
@@ -509,7 +509,7 @@ ngx_http_index_set_index(ngx_conf_t *cf,
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;
}
More information about the nginx-devel
mailing list