summaryrefslogtreecommitdiff
path: root/lib/sendf.c
diff options
context:
space:
mode:
authorMarcel Raad <Marcel.Raad@teamviewer.com>2021-02-07 09:29:59 +0100
committerMarcel Raad <Marcel.Raad@teamviewer.com>2021-02-10 16:47:27 +0100
commit1cd823ed5ab590636fab218741dbf0a61f1d3157 (patch)
treeedfd9c3d8b371f28ab5e990db897bbbd70164928 /lib/sendf.c
parentcc9c4e0f4e2f665b793be021e926401564429a68 (diff)
downloadcurl-1cd823ed5ab590636fab218741dbf0a61f1d3157.tar.gz
lib: remove redundant code
Closes https://github.com/curl/curl/pull/6576
Diffstat (limited to 'lib/sendf.c')
-rw-r--r--lib/sendf.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/sendf.c b/lib/sendf.c
index b3c7fe33d..b57b7878c 100644
--- a/lib/sendf.c
+++ b/lib/sendf.c
@@ -498,9 +498,7 @@ static CURLcode pausewrite(struct Curl_easy *data,
/* store this information in the state struct for later use */
Curl_dyn_init(&s->tempwrite[i].b, DYN_PAUSE_BUFFER);
s->tempwrite[i].type = type;
-
- if(newtype)
- s->tempcount++;
+ s->tempcount++;
}
if(Curl_dyn_addn(&s->tempwrite[i].b, (unsigned char *)ptr, len))