diff options
author | HenrikHolst <henrik.holst@millistream.com> | 2022-02-07 19:25:09 +0100 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2022-02-09 13:52:47 +0100 |
commit | b8072192926b28239aee989ac551d4c8fa8e0cf8 (patch) | |
tree | d2a22f036dc80196c0849b6c32b245dce7286111 /lib/http_chunks.c | |
parent | 2a1951519e78c1aa404ec0201b9eaeae469d757b (diff) | |
download | curl-b8072192926b28239aee989ac551d4c8fa8e0cf8.tar.gz |
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
Diffstat (limited to 'lib/http_chunks.c')
-rw-r--r-- | lib/http_chunks.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/http_chunks.c b/lib/http_chunks.c index 72d6f385b..7edfd6472 100644 --- a/lib/http_chunks.c +++ b/lib/http_chunks.c @@ -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; |