Mercurial > hg > nginx
comparison src/core/ngx_file.c @ 2049:2a92804f4109
*) back out r2040
*) refactor ngx_palloc()
*) introduce ngx_pnalloc()
*) additional pool blocks have smaller header
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Tue, 17 Jun 2008 15:00:30 +0000 |
parents | cbd321d1e1b3 |
children | dbe746851b31 |
comparison
equal
deleted
inserted
replaced
2048:824615f3b4ec | 2049:2a92804f4109 |
---|---|
44 ngx_pool_cleanup_t *cln; | 44 ngx_pool_cleanup_t *cln; |
45 ngx_pool_cleanup_file_t *clnf; | 45 ngx_pool_cleanup_file_t *clnf; |
46 | 46 |
47 file->name.len = path->name.len + 1 + path->len + 10; | 47 file->name.len = path->name.len + 1 + path->len + 10; |
48 | 48 |
49 file->name.data = ngx_palloc(pool, file->name.len + 1); | 49 file->name.data = ngx_pnalloc(pool, file->name.len + 1); |
50 if (file->name.data == NULL) { | 50 if (file->name.data == NULL) { |
51 return NGX_ERROR; | 51 return NGX_ERROR; |
52 } | 52 } |
53 | 53 |
54 #if 0 | 54 #if 0 |