... to let curl_easy_escape() itself do the strlen. This avoids a (false
positive) Coverity warning and it avoids us having to store the strlen()
return value in an int variable.
Reviewed-by: Daniel Gustafsson
Closes #7862
}
}
else if(urlencode) {
- int hostlen = (int)strlen(u->host);
- allochost = curl_easy_escape(NULL, u->host, hostlen);
+ allochost = curl_easy_escape(NULL, u->host, 0);
if(!allochost)
return CURLUE_OUT_OF_MEMORY;
}
<info>
<keywords>
unittest
-URL API
+URLAPI
</keywords>
</info>