diff options
author | Andrew Clayton <andrew@digital-domain.net> | 2022-06-09 23:56:50 +0100 |
---|---|---|
committer | Andrew Clayton <andrew@digital-domain.net> | 2022-06-15 21:16:55 +0100 |
commit | 872130c593ae2ced03b1168d130c6fccfdd67222 (patch) | |
tree | eaee4b3d63aa62f6ce710ab707bc1d363e9dfa01 | |
parent | 6a8081d71e805b12d0f7fd32ce72d60babadfc85 (diff) | |
download | unit-872130c593ae2ced03b1168d130c6fccfdd67222.tar.gz unit-872130c593ae2ced03b1168d130c6fccfdd67222.tar.bz2 |
Unit: removed a useless assignment.archive/uselessAssignmentArg
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 f183ac6e..cd71b918 100644 --- a/src/nxt_unit.c +++ b/src/nxt_unit.c @@ -3075,7 +3075,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); |