From: Daniel Stenberg Date: Mon, 26 Feb 2024 11:27:07 +0000 (+0100) Subject: http_chunks: remove unused 'endptr' variable X-Git-Tag: curl-8_7_0~131 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=9c8968e43db86d3cb178a23416ac4e19d57e8b16;p=thirdparty%2Fcurl.git http_chunks: remove unused 'endptr' variable Closes #12996 --- diff --git a/lib/http_chunks.c b/lib/http_chunks.c index ad1ee9adab..959edb2a4d 100644 --- a/lib/http_chunks.c +++ b/lib/http_chunks.c @@ -155,7 +155,6 @@ static CURLcode httpchunk_readwrite(struct Curl_easy *data, (*pconsumed)++; } else { - char *endptr; if(0 == ch->hexindex) { /* This is illegal data, we received junk where we expected a hexadecimal digit. */ @@ -167,7 +166,7 @@ static CURLcode httpchunk_readwrite(struct Curl_easy *data, /* blen and buf are unmodified */ ch->hexbuffer[ch->hexindex] = 0; - if(curlx_strtoofft(ch->hexbuffer, &endptr, 16, &ch->datasize)) { + if(curlx_strtoofft(ch->hexbuffer, NULL, 16, &ch->datasize)) { failf(data, "chunk hex-length not valid: '%s'", ch->hexbuffer); ch->state = CHUNK_FAILED; ch->last_code = CHUNKE_ILLEGAL_HEX;