summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAndrew Clayton <andrew@digital-domain.net>2022-06-09 23:56:50 +0100
committerAndrew Clayton <andrew@digital-domain.net>2022-06-15 21:16:55 +0100
commit872130c593ae2ced03b1168d130c6fccfdd67222 (patch)
treeeaee4b3d63aa62f6ce710ab707bc1d363e9dfa01
parent6a8081d71e805b12d0f7fd32ce72d60babadfc85 (diff)
downloadunit-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.c1
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);