mirror of
https://github.com/nginx/nginx.git
synced 2025-08-05 22:26:15 +08:00
remove unneeded increment
This commit is contained in:
parent
da0a5318f1
commit
51ed97f79f
@ -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 New Issue
Block a user