remove unneeded increment

This commit is contained in:
Igor Sysoev 2009-03-14 17:10:25 +00:00
parent 589338b12f
commit cdf49db2e9
2 changed files with 2 additions and 2 deletions

View file

@ -198,7 +198,7 @@ ngx_http_index_handler(ngx_http_request_t *r)
path.len = e.pos - path.data;
*e.pos++ = '\0';
*e.pos = '\0';
}
ngx_log_debug1(NGX_LOG_DEBUG_HTTP, r->connection->log, 0,

View file

@ -1122,7 +1122,7 @@ ngx_http_core_try_files_phase(ngx_http_request_t *r,
path.len = e.pos - path.data;
*e.pos++ = '\0';
*e.pos = '\0';
if (alias && ngx_strncmp(name, clcf->name.data, alias) == 0) {
ngx_memcpy(name, name + alias, len - alias);