comparison src/core/ngx_file.c @ 6070:3f5465a33fa8

Core: removed excessive initialization in ngx_conf_set_path_slot(). Level hierarchy is pre-zeroed in ngx_pcalloc() of the surrounding ngx_path_t.
author Sergey Kandaurov <pluknet@nginx.com>
date Tue, 07 Apr 2015 01:32:07 +0300
parents e37ec0a33901
children 7bdd34cd2711
comparison
equal deleted inserted replaced
6069:e37ec0a33901 6070:3f5465a33fa8
368 return "invalid value"; 368 return "invalid value";
369 } 369 }
370 370
371 path->level[i] = level; 371 path->level[i] = level;
372 path->len += level + 1; 372 path->len += level + 1;
373 }
374
375 while (i < 3) {
376 path->level[i++] = 0;
377 } 373 }
378 374
379 *slot = path; 375 *slot = path;
380 376
381 if (ngx_add_path(cf, slot) == NGX_ERROR) { 377 if (ngx_add_path(cf, slot) == NGX_ERROR) {