CodeSonar found a case where it would be assigned but never used and
narrowing the scope makes sense anyway.
Closes #17316
there was no trailer and we move on */
if(tr) {
- size_t trlen;
result = curlx_dyn_addn(&ch->trailer, STRCONST("\x0d\x0a"));
if(result) {
ch->state = CHUNK_FAILED;
return result;
}
tr = curlx_dyn_ptr(&ch->trailer);
- trlen = curlx_dyn_len(&ch->trailer);
if(!data->set.http_te_skip) {
+ size_t trlen = curlx_dyn_len(&ch->trailer);
if(cw_next)
result = Curl_cwriter_write(data, cw_next,
CLIENTWRITE_HEADER|