From cdf49db2e98b0d4e0fa53357665d6c5ecf2cc966 Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Sat, 14 Mar 2009 17:10:25 +0000 Subject: [PATCH] remove unneeded increment --- src/http/modules/ngx_http_index_module.c | 2 +- src/http/ngx_http_core_module.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/http/modules/ngx_http_index_module.c b/src/http/modules/ngx_http_index_module.c index f9ce84944..fd201056a 100644 --- a/src/http/modules/ngx_http_index_module.c +++ b/src/http/modules/ngx_http_index_module.c @@ -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, diff --git a/src/http/ngx_http_core_module.c b/src/http/ngx_http_core_module.c index 2c3992b56..3af15de18 100644 --- a/src/http/ngx_http_core_module.c +++ b/src/http/ngx_http_core_module.c @@ -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);