diff options
author | Andrew Clayton <andrew@digital-domain.net> | 2022-06-16 02:01:01 +0100 |
---|---|---|
committer | Alejandro Colomar <alx.manpages@gmail.com> | 2022-06-22 00:53:53 +0200 |
commit | 63667e2f9c571ad4357a30e42b321bec6a97ee89 (patch) | |
tree | dea05b060d07a2119b8efa249561690a569a0c19 | |
parent | 39819143ea891b752e5f1f6c6101d0861fb18850 (diff) | |
download | unit-63667e2f9c571ad4357a30e42b321bec6a97ee89.tar.gz unit-63667e2f9c571ad4357a30e42b321bec6a97ee89.tar.bz2 |
Unit: removed a useless assignment.
As was pointed out by the cppcheck[0] static code analysis utility there
was a useless assignment in nxt_unit_request_read(). The size parameter
is passed in by value and was being modified without being used again.
[0]: https://cppcheck.sourceforge.io/
-rw-r--r-- | src/nxt_unit.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/nxt_unit.c b/src/nxt_unit.c index 9baa680f..fd086b2c 100644 --- a/src/nxt_unit.c +++ b/src/nxt_unit.c @@ -3076,7 +3076,6 @@ nxt_unit_request_read(nxt_unit_request_info_t *req, void *dst, size_t size) } req->content_length -= res; - size -= res; dst = nxt_pointer_to(dst, res); |