mirror of
https://github.com/curl/curl.git
synced 2026-07-26 19:37:17 +03:00
lib: remove strlen call from Curl_client_write
At all call sites with an explicit 0 len, pass an appropriate nonzero len. Closes #6954
This commit is contained in:
parent
6aae7b1761
commit
f4b85d24b2
4 changed files with 19 additions and 15 deletions
|
|
@ -616,9 +616,8 @@ CURLcode Curl_client_write(struct Curl_easy *data,
|
|||
size_t len)
|
||||
{
|
||||
struct connectdata *conn = data->conn;
|
||||
if(0 == len)
|
||||
len = strlen(ptr);
|
||||
|
||||
DEBUGASSERT(len);
|
||||
DEBUGASSERT(type <= 3);
|
||||
|
||||
/* FTP data may need conversion. */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue