Mercurial > hg > nginx
comparison src/http/modules/ngx_http_index_handler.c @ 103:6dfda4cf5200
nginx-0.0.1-2003-06-11-19:28:34 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Wed, 11 Jun 2003 15:28:34 +0000 |
parents | a059e1aa65d4 |
children | 152567c11325 |
comparison
equal
deleted
inserted
replaced
102:7e86d028d8f0 | 103:6dfda4cf5200 |
---|---|
238 int i; | 238 int i; |
239 ngx_str_t *index, *prev_index; | 239 ngx_str_t *index, *prev_index; |
240 | 240 |
241 if (conf->max_index_len == 0) { | 241 if (conf->max_index_len == 0) { |
242 if (prev->max_index_len != 0) { | 242 if (prev->max_index_len != 0) { |
243 ngx_memcpy(conf, prev, sizeof(ngx_http_index_conf_t)); | 243 ngx_memcpy(conf, prev, sizeof(ngx_http_index_conf_t)); |
244 return NGX_CONF_OK; | 244 return NGX_CONF_OK; |
245 } | 245 } |
246 | 246 |
247 ngx_test_null(index, ngx_push_array(&conf->indices), NGX_CONF_ERROR); | 247 ngx_test_null(index, ngx_push_array(&conf->indices), NGX_CONF_ERROR); |
248 index->len = sizeof(NGX_HTTP_DEFAULT_INDEX) - 1; | 248 index->len = sizeof(NGX_HTTP_DEFAULT_INDEX) - 1; |