]> git.kaiwu.me - nginx.git/commit
Removed extra allocation for r->uri.
authorMaxim Dounin <mdounin@mdounin.ru>
Thu, 10 Dec 2020 17:09:39 +0000 (20:09 +0300)
committerMaxim Dounin <mdounin@mdounin.ru>
Thu, 10 Dec 2020 17:09:39 +0000 (20:09 +0300)
commit2e94c81b0bf1d8e695d9afd074c79520aa03081a
tree11b4b52a729526e4b93e9227055a51312467c1c5
parentce9971b2b5c14982afede89635508334938ac520
Removed extra allocation for r->uri.

The ngx_http_parse_complex_uri() function cannot make URI longer and does
not null-terminate URI, so there is no need to allocate an extra byte.  This
allocation appears to be a leftover from changes in 461:a88a3e4e158f (0.1.5),
where null-termination of r->uri and many other strings was removed.
src/http/ngx_http_request.c