diff options
author | Daniel Stenberg <daniel@haxx.se> | 2019-02-11 10:11:20 +0100 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2019-02-11 10:11:20 +0100 |
commit | fdc4d0b6b45158f83ff4d66286c9934f779dc471 (patch) | |
tree | 6b4be30bf669f52aead46674633581c5a9a57768 /lib/transfer.c | |
parent | 01a8e7b93016d833a5fe687cd64eddae6d4512f9 (diff) | |
download | curl-bagder/get-nostrlen-postfields.tar.gz |
fixup set it to zero if the parameter is not usedbagder/get-nostrlen-postfields
Diffstat (limited to 'lib/transfer.c')
-rw-r--r-- | lib/transfer.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/transfer.c b/lib/transfer.c index 31f43b28a..27fe79074 100644 --- a/lib/transfer.c +++ b/lib/transfer.c @@ -1532,6 +1532,8 @@ CURLcode Curl_pretransfer(struct Curl_easy *data) if(data->set.postfields && (data->state.infilesize == -1)) data->state.infilesize = (curl_off_t)strlen(data->set.postfields); } + else + data->state.infilesize = 0; /* If there is a list of cookie files to read, do it now! */ if(data->change.cookielist) |