Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nginx/nginx.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2009-03-14 20:10:25 +0300
committerIgor Sysoev <igor@sysoev.ru>2009-03-14 20:10:25 +0300
commit51ed97f79f36b4286577e0bda8822fbc18d11df6 (patch)
tree6df16ce690ed702c032b16efaf4e892c87c1a30b /src
parentda0a5318f10bf171235c247976ae30ca9b07a19f (diff)
remove unneeded increment
Diffstat (limited to 'src')
-rw-r--r--src/http/modules/ngx_http_index_module.c2
-rw-r--r--src/http/ngx_http_core_module.c2
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);