remove unneeded increment
This commit is contained in:
parent
589338b12f
commit
cdf49db2e9
2 changed files with 2 additions and 2 deletions
|
@ -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,
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue