src/http/modules/ngx_http_index_module.c:188: error: Null Dereference
  pointer `name` last assigned on line 125 could be null and is dereferenced at line 188, column 17.

src/http/modules/ngx_http_index_module.c:95:1: start of procedure ngx_http_index_handler()
93.  */
94. 
95. static ngx_int_t
    ^
96. ngx_http_index_handler(ngx_http_request_t *r)
97. {

src/http/modules/ngx_http_index_module.c:111:9: Taking false branch
109.     ngx_http_script_len_code_pt   lcode;
110. 
111.     if (r->uri.data[r->uri.len - 1] != '/') {
             ^
112.         return NGX_DECLINED;
113.     }

src/http/modules/ngx_http_index_module.c:115:11: Taking false branch
113.     }
114. 
115.     if (!(r->method & (NGX_HTTP_GET|NGX_HTTP_HEAD|NGX_HTTP_POST))) {
               ^
116.         return NGX_DECLINED;
117.     }

src/http/modules/ngx_http_index_module.c:119:5: 
117.     }
118. 
119.     ilcf = ngx_http_get_module_loc_conf(r, ngx_http_index_module);
         ^
120.     clcf = ngx_http_get_module_loc_conf(r, ngx_http_core_module);
121. 

src/http/modules/ngx_http_index_module.c:120:5: 
118. 
119.     ilcf = ngx_http_get_module_loc_conf(r, ngx_http_index_module);
120.     clcf = ngx_http_get_module_loc_conf(r, ngx_http_core_module);
         ^
121. 
122.     allocated = 0;

src/http/modules/ngx_http_index_module.c:122:5: 
120.     clcf = ngx_http_get_module_loc_conf(r, ngx_http_core_module);
121. 
122.     allocated = 0;
         ^
123.     root = 0;
124.     dir_tested = 0;

src/http/modules/ngx_http_index_module.c:123:5: 
121. 
122.     allocated = 0;
123.     root = 0;
         ^
124.     dir_tested = 0;
125.     name = NULL;

src/http/modules/ngx_http_index_module.c:124:5: 
122.     allocated = 0;
123.     root = 0;
124.     dir_tested = 0;
         ^
125.     name = NULL;
126.     /* suppress MSVC warning */

src/http/modules/ngx_http_index_module.c:125:5: 
123.     root = 0;
124.     dir_tested = 0;
125.     name = NULL;
         ^
126.     /* suppress MSVC warning */
127.     path.data = NULL;

src/http/modules/ngx_http_index_module.c:127:5: 
125.     name = NULL;
126.     /* suppress MSVC warning */
127.     path.data = NULL;
         ^
128. 
129.     index = ilcf->indices->elts;

src/http/modules/ngx_http_index_module.c:129:5: 
127.     path.data = NULL;
128. 
129.     index = ilcf->indices->elts;
         ^
130.     for (i = 0; i < ilcf->indices->nelts; i++) {
131. 

src/http/modules/ngx_http_index_module.c:130:10: 
128. 
129.     index = ilcf->indices->elts;
130.     for (i = 0; i < ilcf->indices->nelts; i++) {
              ^
131. 
132.         if (index[i].lengths == NULL) {

src/http/modules/ngx_http_index_module.c:130:17: Loop condition is true. Entering loop body
128. 
129.     index = ilcf->indices->elts;
130.     for (i = 0; i < ilcf->indices->nelts; i++) {
                     ^
131. 
132.         if (index[i].lengths == NULL) {

src/http/modules/ngx_http_index_module.c:132:13: Taking true branch
130.     for (i = 0; i < ilcf->indices->nelts; i++) {
131. 
132.         if (index[i].lengths == NULL) {
                 ^
133. 
134.             if (index[i].name.data[0] == '/') {

src/http/modules/ngx_http_index_module.c:134:17: Taking false branch
132.         if (index[i].lengths == NULL) {
133. 
134.             if (index[i].name.data[0] == '/') {
                     ^
135.                 return ngx_http_internal_redirect(r, &index[i].name, &r->args);
136.             }

src/http/modules/ngx_http_index_module.c:138:13: 
136.             }
137. 
138.             reserve = ilcf->max_index_len;
                 ^
139.             len = index[i].name.len;
140. 

src/http/modules/ngx_http_index_module.c:139:13: 
137. 
138.             reserve = ilcf->max_index_len;
139.             len = index[i].name.len;
                 ^
140. 
141.         } else {

src/http/modules/ngx_http_index_module.c:161:13: Taking false branch
159.         }
160. 
161.         if (reserve > allocated) {
                 ^
162. 
163.             name = ngx_http_map_uri_to_path(r, &path, &root, reserve);

src/http/modules/ngx_http_index_module.c:171:13: Taking false branch
169.         }
170. 
171.         if (index[i].values == NULL) {
                 ^
172. 
173.             /* index[i].name.len includes the terminating '\0' */

src/http/modules/ngx_http_index_module.c:180:13: 
178. 
179.         } else {
180.             e.ip = index[i].values->elts;
                 ^
181.             e.pos = name;
182. 

src/http/modules/ngx_http_index_module.c:181:13: 
179.         } else {
180.             e.ip = index[i].values->elts;
181.             e.pos = name;
                 ^
182. 
183.             while (*(uintptr_t *) e.ip) {

src/http/modules/ngx_http_index_module.c:183:20: Loop condition is true. Entering loop body
181.             e.pos = name;
182. 
183.             while (*(uintptr_t *) e.ip) {
                        ^
184.                 code = *(ngx_http_script_code_pt *) e.ip;
185.                 code((ngx_http_script_engine_t *) &e);

src/http/modules/ngx_http_index_module.c:184:17: 
182. 
183.             while (*(uintptr_t *) e.ip) {
184.                 code = *(ngx_http_script_code_pt *) e.ip;
                     ^
185.                 code((ngx_http_script_engine_t *) &e);
186.             }

src/http/modules/ngx_http_index_module.c:185:17: Skipping __function_pointer__(): unresolved function pointer
183.             while (*(uintptr_t *) e.ip) {
184.                 code = *(ngx_http_script_code_pt *) e.ip;
185.                 code((ngx_http_script_engine_t *) &e);
                     ^
186.             }
187. 

src/http/modules/ngx_http_index_module.c:183:20: Loop condition is false. Leaving loop
181.             e.pos = name;
182. 
183.             while (*(uintptr_t *) e.ip) {
                        ^
184.                 code = *(ngx_http_script_code_pt *) e.ip;
185.                 code((ngx_http_script_engine_t *) &e);

src/http/modules/ngx_http_index_module.c:188:17: 
186.             }
187. 
188.             if (*name == '/') {
                     ^
189.                 uri.len = len - 1;
190.                 uri.data = name;
