src/http/modules/ngx_http_index_module.c:193: error: Null Dereference
  pointer `name` last assigned on line 130 could be null and is dereferenced at line 193, 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:120:9: Taking false branch
118. 
119.     /* TODO: Win32 */
120.     if (r->zero_in_uri) {
             ^
121.         return NGX_DECLINED;
122.     }

src/http/modules/ngx_http_index_module.c:124:5: 
122.     }
123. 
124.     ilcf = ngx_http_get_module_loc_conf(r, ngx_http_index_module);
         ^
125.     clcf = ngx_http_get_module_loc_conf(r, ngx_http_core_module);
126. 

src/http/modules/ngx_http_index_module.c:125:5: 
123. 
124.     ilcf = ngx_http_get_module_loc_conf(r, ngx_http_index_module);
125.     clcf = ngx_http_get_module_loc_conf(r, ngx_http_core_module);
         ^
126. 
127.     allocated = 0;

src/http/modules/ngx_http_index_module.c:127:5: 
125.     clcf = ngx_http_get_module_loc_conf(r, ngx_http_core_module);
126. 
127.     allocated = 0;
         ^
128.     root = 0;
129.     dir_tested = 0;

src/http/modules/ngx_http_index_module.c:128:5: 
126. 
127.     allocated = 0;
128.     root = 0;
         ^
129.     dir_tested = 0;
130.     name = NULL;

src/http/modules/ngx_http_index_module.c:129:5: 
127.     allocated = 0;
128.     root = 0;
129.     dir_tested = 0;
         ^
130.     name = NULL;
131.     /* suppress MSVC warning */

src/http/modules/ngx_http_index_module.c:130:5: 
128.     root = 0;
129.     dir_tested = 0;
130.     name = NULL;
         ^
131.     /* suppress MSVC warning */
132.     path.data = NULL;

src/http/modules/ngx_http_index_module.c:132:5: 
130.     name = NULL;
131.     /* suppress MSVC warning */
132.     path.data = NULL;
         ^
133. 
134.     index = ilcf->indices->elts;

src/http/modules/ngx_http_index_module.c:134:5: 
132.     path.data = NULL;
133. 
134.     index = ilcf->indices->elts;
         ^
135.     for (i = 0; i < ilcf->indices->nelts; i++) {
136. 

src/http/modules/ngx_http_index_module.c:135:10: 
133. 
134.     index = ilcf->indices->elts;
135.     for (i = 0; i < ilcf->indices->nelts; i++) {
              ^
136. 
137.         if (index[i].lengths == NULL) {

src/http/modules/ngx_http_index_module.c:135:17: Loop condition is true. Entering loop body
133. 
134.     index = ilcf->indices->elts;
135.     for (i = 0; i < ilcf->indices->nelts; i++) {
                     ^
136. 
137.         if (index[i].lengths == NULL) {

src/http/modules/ngx_http_index_module.c:137:13: Taking true branch
135.     for (i = 0; i < ilcf->indices->nelts; i++) {
136. 
137.         if (index[i].lengths == NULL) {
                 ^
138. 
139.             if (index[i].name.data[0] == '/') {

src/http/modules/ngx_http_index_module.c:139:17: Taking false branch
137.         if (index[i].lengths == NULL) {
138. 
139.             if (index[i].name.data[0] == '/') {
                     ^
140.                 return ngx_http_internal_redirect(r, &index[i].name, &r->args);
141.             }

src/http/modules/ngx_http_index_module.c:143:13: 
141.             }
142. 
143.             reserve = ilcf->max_index_len;
                 ^
144.             len = index[i].name.len;
145. 

src/http/modules/ngx_http_index_module.c:144:13: 
142. 
143.             reserve = ilcf->max_index_len;
144.             len = index[i].name.len;
                 ^
145. 
146.         } else {

src/http/modules/ngx_http_index_module.c:166:13: Taking false branch
164.         }
165. 
166.         if (reserve > allocated) {
                 ^
167. 
168.             name = ngx_http_map_uri_to_path(r, &path, &root, reserve);

src/http/modules/ngx_http_index_module.c:176:13: Taking false branch
174.         }
175. 
176.         if (index[i].values == NULL) {
                 ^
177. 
178.             /* index[i].name.len includes the terminating '\0' */

src/http/modules/ngx_http_index_module.c:185:13: 
183. 
184.         } else {
185.             e.ip = index[i].values->elts;
                 ^
186.             e.pos = name;
187. 

src/http/modules/ngx_http_index_module.c:186:13: 
184.         } else {
185.             e.ip = index[i].values->elts;
186.             e.pos = name;
                 ^
187. 
188.             while (*(uintptr_t *) e.ip) {

src/http/modules/ngx_http_index_module.c:188:20: Loop condition is true. Entering loop body
186.             e.pos = name;
187. 
188.             while (*(uintptr_t *) e.ip) {
                        ^
189.                 code = *(ngx_http_script_code_pt *) e.ip;
190.                 code((ngx_http_script_engine_t *) &e);

src/http/modules/ngx_http_index_module.c:189:17: 
187. 
188.             while (*(uintptr_t *) e.ip) {
189.                 code = *(ngx_http_script_code_pt *) e.ip;
                     ^
190.                 code((ngx_http_script_engine_t *) &e);
191.             }

src/http/modules/ngx_http_index_module.c:190:17: Skipping __function_pointer__(): unresolved function pointer
188.             while (*(uintptr_t *) e.ip) {
189.                 code = *(ngx_http_script_code_pt *) e.ip;
190.                 code((ngx_http_script_engine_t *) &e);
                     ^
191.             }
192. 

src/http/modules/ngx_http_index_module.c:188:20: Loop condition is false. Leaving loop
186.             e.pos = name;
187. 
188.             while (*(uintptr_t *) e.ip) {
                        ^
189.                 code = *(ngx_http_script_code_pt *) e.ip;
190.                 code((ngx_http_script_engine_t *) &e);

src/http/modules/ngx_http_index_module.c:193:17: 
191.             }
192. 
193.             if (*name == '/') {
                     ^
194.                 uri.len = len - 1;
195.                 uri.data = name;
