changeset 9456:8eea8cb2d2a1

Fixed inaccurate index directive error report.
author willmafh <willmafh@hotmail.com>
date Mon, 08 Sep 2025 22:03:30 +0800
parents ab7ae29384b4
children fa9e8292a672
files src/http/modules/ngx_http_index_module.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/http/modules/ngx_http_index_module.c	Mon Aug 18 22:10:25 2025 +0400
+++ b/src/http/modules/ngx_http_index_module.c	Mon Sep 08 22:03:30 2025 +0800
@@ -490,7 +490,7 @@
         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;
         }