mirror of
https://github.com/curl/curl.git
synced 2026-08-25 23:23:31 +03:00
misc: reduce strlen() calls with Curl_dyn_add()
Use STRCONST() to switch from Curl_dyn_add() to Curl_dyn_addn() for string literals. Closes #8398
This commit is contained in:
parent
2a1951519e
commit
b807219292
7 changed files with 37 additions and 34 deletions
|
|
@ -214,7 +214,7 @@ CHUNKcode Curl_httpchunk_read(struct Curl_easy *data,
|
|||
|
||||
if(tr) {
|
||||
size_t trlen;
|
||||
result = Curl_dyn_add(&conn->trailer, (char *)"\x0d\x0a");
|
||||
result = Curl_dyn_addn(&conn->trailer, (char *)STRCONST("\x0d\x0a"));
|
||||
if(result)
|
||||
return CHUNKE_OUT_OF_MEMORY;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue