comparison src/core/ngx_file.c @ 5376:dd9cb4edf499

Removed surplus initializations from ngx_conf_set_path_slot(). An instance of ngx_path_t is already zeroed by ngx_pcalloc().
author Valentin Bartenev <vbart@nginx.com>
date Mon, 16 Sep 2013 18:49:22 +0400
parents 7d8770196436
children cec155f07c84
comparison
equal deleted inserted replaced
5375:7d8770196436 5376:dd9cb4edf499
357 357
358 if (ngx_conf_full_name(cf->cycle, &path->name, 0) != NGX_OK) { 358 if (ngx_conf_full_name(cf->cycle, &path->name, 0) != NGX_OK) {
359 return NULL; 359 return NULL;
360 } 360 }
361 361
362 path->len = 0;
363 path->manager = NULL;
364 path->loader = NULL;
365 path->conf_file = cf->conf_file->file.name.data; 362 path->conf_file = cf->conf_file->file.name.data;
366 path->line = cf->conf_file->line; 363 path->line = cf->conf_file->line;
367 364
368 for (i = 0, n = 2; n < cf->args->nelts; i++, n++) { 365 for (i = 0, n = 2; n < cf->args->nelts; i++, n++) {
369 level = ngx_atoi(value[n].data, value[n].len); 366 level = ngx_atoi(value[n].data, value[n].len);