diff options
author | Rasmus Lerdorf <rasmus@php.net> | 2011-05-19 23:18:55 +0000 |
---|---|---|
committer | Rasmus Lerdorf <rasmus@php.net> | 2011-05-19 23:18:55 +0000 |
commit | 00842d6996227c0094cc17d5fb6161e59f3018a5 (patch) | |
tree | fbcdfea8796fc9c8a3285a7a41350985f1d60f29 /TSRM | |
parent | e40c470c9d6c2bf201d1b2f6571a82bcc8d90ec4 (diff) | |
download | php-git-00842d6996227c0094cc17d5fb6161e59f3018a5.tar.gz |
Fix CS
Diffstat (limited to 'TSRM')
-rw-r--r-- | TSRM/tsrm_virtual_cwd.c | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/TSRM/tsrm_virtual_cwd.c b/TSRM/tsrm_virtual_cwd.c index b3d12e2b95..e424e04b7b 100644 --- a/TSRM/tsrm_virtual_cwd.c +++ b/TSRM/tsrm_virtual_cwd.c @@ -631,10 +631,11 @@ CWD_API void realpath_cache_del(const char *path, int path_len TSRMLS_DC) /* {{{ *bucket = (*bucket)->next; /* if the pointers match then only subtract the length of the path */ - if(r->path == r->realpath) - CWDG(realpath_cache_size) -= sizeof(realpath_cache_bucket) + r->path_len + 1; - else - CWDG(realpath_cache_size) -= sizeof(realpath_cache_bucket) + r->path_len + 1 + r->realpath_len + 1; + if(r->path == r->realpath) { + CWDG(realpath_cache_size) -= sizeof(realpath_cache_bucket) + r->path_len + 1; + } else { + CWDG(realpath_cache_size) -= sizeof(realpath_cache_bucket) + r->path_len + 1 + r->realpath_len + 1; + } free(r); return; @@ -712,10 +713,11 @@ static inline realpath_cache_bucket* realpath_cache_find(const char *path, int p *bucket = (*bucket)->next; /* if the pointers match then only subtract the length of the path */ - if(r->path == r->realpath) - CWDG(realpath_cache_size) -= sizeof(realpath_cache_bucket) + r->path_len + 1; - else - CWDG(realpath_cache_size) -= sizeof(realpath_cache_bucket) + r->path_len + 1 + r->realpath_len + 1; + if(r->path == r->realpath) { + CWDG(realpath_cache_size) -= sizeof(realpath_cache_bucket) + r->path_len + 1; + } else { + CWDG(realpath_cache_size) -= sizeof(realpath_cache_bucket) + r->path_len + 1 + r->realpath_len + 1; + } free(r); } else if (key == (*bucket)->key && path_len == (*bucket)->path_len && |