]> granicus.if.org Git - curl/commitdiff
mime: fix "Value stored to 'sz' is never read" scan-build error
authorDaniel Stenberg <daniel@haxx.se>
Mon, 20 Nov 2017 22:08:59 +0000 (23:08 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 21 Nov 2017 08:02:40 +0000 (09:02 +0100)
lib/mime.c

index 07eded7232a17ba99288442c07a61868db5f06ac..457000a0b53a0ecac668b7fcf1c0f954ea1f6e3a 100644 (file)
@@ -719,8 +719,6 @@ static size_t readback_bytes(mime_state *state,
 {
   size_t sz;
 
-  sz = numbytes - state->offset;
-
   if(numbytes > state->offset) {
     sz = numbytes - state->offset;
     bytes += state->offset;