mirror of
https://github.com/nginx/nginx.git
synced 2026-10-22 12:01:09 +00:00
remove unneeded increment
This commit is contained in:
parent
da0a5318f1
commit
51ed97f79f
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…
Add table
Add a link
Reference in a new issue