aboutsummaryrefslogtreecommitdiff
path: root/src/http/ngx_http_file_cache.c
diff options
context:
space:
mode:
authorValentin Bartenev <vbart@nginx.com>2013-02-19 17:48:45 +0000
committerValentin Bartenev <vbart@nginx.com>2013-02-19 17:48:45 +0000
commit59db08a6fcef71265e7ab8ac32797b6db0f56aae (patch)
tree6654ab3ee0b6a6f70e2885ec6a9171b5090ec43c /src/http/ngx_http_file_cache.c
parenta98305e363444d8df8844416663a0889c2edfa8d (diff)
downloadnginx-59db08a6fcef71265e7ab8ac32797b6db0f56aae.tar.gz
nginx-59db08a6fcef71265e7ab8ac32797b6db0f56aae.zip
Removed zero termination of shm zone names.
It was added in r2717 and no longer needed since r2721, where the termination was added to ngx_shm_alloc() and ngx_init_zone_pool(). So then it only corrupts error messages about ivalid zones.
Diffstat (limited to 'src/http/ngx_http_file_cache.c')
-rw-r--r--src/http/ngx_http_file_cache.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/http/ngx_http_file_cache.c b/src/http/ngx_http_file_cache.c
index bd6cebadd..6d94c5034 100644
--- a/src/http/ngx_http_file_cache.c
+++ b/src/http/ngx_http_file_cache.c
@@ -1674,8 +1674,6 @@ ngx_http_file_cache_set_slot(ngx_conf_t *cf, ngx_command_t *cmd, void *conf)
p = (u_char *) ngx_strchr(name.data, ':');
if (p) {
- *p = '\0';
-
name.len = p - name.data;
p++;