Mercurial > hg > nginx
changeset 2564:47839f59ce2a
remove unneeded increment
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Sat, 14 Mar 2009 17:10:25 +0000 |
parents | e345fcf61a12 |
children | 456e453eb84a |
files | src/http/modules/ngx_http_index_module.c src/http/ngx_http_core_module.c |
diffstat | 2 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/http/modules/ngx_http_index_module.c Fri Mar 13 14:53:30 2009 +0000 +++ b/src/http/modules/ngx_http_index_module.c Sat Mar 14 17:10:25 2009 +0000 @@ -198,7 +198,7 @@ path.len = e.pos - path.data; - *e.pos++ = '\0'; + *e.pos = '\0'; } ngx_log_debug1(NGX_LOG_DEBUG_HTTP, r->connection->log, 0,
--- a/src/http/ngx_http_core_module.c Fri Mar 13 14:53:30 2009 +0000 +++ b/src/http/ngx_http_core_module.c Sat Mar 14 17:10:25 2009 +0000 @@ -1122,7 +1122,7 @@ 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);