Mercurial > hg > nginx
comparison src/core/ngx_file.c @ 2536:a6d6d762c554
small optimization: " == NGX_ERROR" > " != NGX_OK"
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Tue, 24 Feb 2009 10:42:23 +0000 |
parents | dbe746851b31 |
children | 3a8a53c0c42f |
comparison
equal
deleted
inserted
replaced
2535:ec5825afc7eb | 2536:a6d6d762c554 |
---|---|
257 | 257 |
258 if (path->name.data[path->name.len - 1] == '/') { | 258 if (path->name.data[path->name.len - 1] == '/') { |
259 path->name.len--; | 259 path->name.len--; |
260 } | 260 } |
261 | 261 |
262 if (ngx_conf_full_name(cf->cycle, &path->name, 0) == NGX_ERROR) { | 262 if (ngx_conf_full_name(cf->cycle, &path->name, 0) != NGX_OK) { |
263 return NULL; | 263 return NULL; |
264 } | 264 } |
265 | 265 |
266 path->len = 0; | 266 path->len = 0; |
267 path->cleaner = (ngx_gc_handler_pt) cmd->post; | 267 path->cleaner = (ngx_gc_handler_pt) cmd->post; |