comparison src/http/modules/ngx_http_geo_module.c @ 440:6281966854a5 NGINX_0_7_32

nginx 0.7.32 *) Feature: now a directory existence testing can be set explicitly in the "try_files" directive. *) Bugfix: fastcgi_store stored files not always. *) Bugfix: in geo ranges. *) Bugfix: in shared memory allocations if nginx was built without debugging. Thanks to Andrey Kvasov.
author Igor Sysoev <http://sysoev.ru>
date Mon, 26 Jan 2009 00:00:00 +0300
parents ce4f9ff90bfa
children 76a79816b771
comparison
equal deleted inserted replaced
439:02687ee42c28 440:6281966854a5
634 return NGX_CONF_ERROR; 634 return NGX_CONF_ERROR;
635 } 635 }
636 636
637 range = a->elts; 637 range = a->elts;
638 638
639 ngx_memcpy(&range[i + 2], &range[i + 1], 639 ngx_memcpy(&range[i + 1], &range[i],
640 (a->nelts - 2 - i) * sizeof(ngx_http_geo_range_t)); 640 (a->nelts - 1 - i) * sizeof(ngx_http_geo_range_t));
641 641
642 range[i + 1].start = (u_short) (e + 1); 642 range[i + 1].start = (u_short) (e + 1);
643 643
644 range[i].start = (u_short) s; 644 range[i].start = (u_short) s;
645 range[i].end = (u_short) e; 645 range[i].end = (u_short) e;