comparison src/core/ngx_file.c @ 190:02a715e85df1

nginx-0.0.1-2003-11-19-00:34:08 import
author Igor Sysoev <igor@sysoev.ru>
date Tue, 18 Nov 2003 21:34:08 +0000
parents c1f3a3c7c5db
children 2357fa41738a
comparison
equal deleted inserted replaced
189:c966c09be66b 190:02a715e85df1
200 200
201 if (*pp) { 201 if (*pp) {
202 return "is duplicate"; 202 return "is duplicate";
203 } 203 }
204 204
205 ngx_test_null(path, ngx_pcalloc(cf->pool, sizeof(ngx_path_t)), NULL); 205 /* TODO: check duplicate in cf->cycle->pathes */
206 206
207 ngx_test_null(path, ngx_pcalloc(cf->pool, sizeof(ngx_path_t)),
208 NGX_CONF_ERROR);
209
210 *pp = path;
211
212 ngx_test_null(pp, ngx_push_array(&cf->cycle->pathes), NGX_CONF_ERROR);
207 *pp = path; 213 *pp = path;
208 214
209 value = (ngx_str_t *) cf->args->elts; 215 value = (ngx_str_t *) cf->args->elts;
210 216
211 path->name = value[1]; 217 path->name = value[1];
223 229
224 while (i < 3) { 230 while (i < 3) {
225 path->level[i++] = 0; 231 path->level[i++] = 0;
226 } 232 }
227 233
234 path->gc_handler = cmd->post;
235
228 return NGX_CONF_OK; 236 return NGX_CONF_OK;
229 } 237 }