comparison src/http/modules/ngx_http_geo_module.c @ 3642:ac33852faaac

style fix
author Igor Sysoev <igor@sysoev.ru>
date Wed, 23 Jun 2010 16:34:54 +0000
parents 6802ba529ec4
children 762712d69672
comparison
equal deleted inserted replaced
3641:6802ba529ec4 3642:ac33852faaac
344 ctx.high->low[i].n = a->nelts; 344 ctx.high->low[i].n = a->nelts;
345 345
346 len = a->nelts * sizeof(ngx_http_geo_range_t); 346 len = a->nelts * sizeof(ngx_http_geo_range_t);
347 347
348 ctx.high->low[i].ranges = ngx_palloc(cf->pool, len); 348 ctx.high->low[i].ranges = ngx_palloc(cf->pool, len);
349 if (ctx.high->low[i].ranges == NULL ){ 349 if (ctx.high->low[i].ranges == NULL) {
350 return NGX_CONF_ERROR; 350 return NGX_CONF_ERROR;
351 } 351 }
352 352
353 ngx_memcpy(ctx.high->low[i].ranges, a->elts, len); 353 ngx_memcpy(ctx.high->low[i].ranges, a->elts, len);
354 } 354 }
445 file.data = ngx_pstrdup(ctx->temp_pool, &value[1]); 445 file.data = ngx_pstrdup(ctx->temp_pool, &value[1]);
446 if (file.data == NULL) { 446 if (file.data == NULL) {
447 goto failed; 447 goto failed;
448 } 448 }
449 449
450 if (ngx_conf_full_name(cf->cycle, &file, 1) != NGX_OK){ 450 if (ngx_conf_full_name(cf->cycle, &file, 1) != NGX_OK) {
451 goto failed; 451 goto failed;
452 } 452 }
453 453
454 ngx_log_debug1(NGX_LOG_DEBUG_CORE, cf->log, 0, "include %s", file.data); 454 ngx_log_debug1(NGX_LOG_DEBUG_CORE, cf->log, 0, "include %s", file.data);
455 455