]> git.ipfire.org Git - thirdparty/curl.git/commit
transfer: avoid unreachable expression
authorDaniel Stenberg <daniel@haxx.se>
Tue, 21 Nov 2023 07:13:08 +0000 (08:13 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 21 Nov 2023 12:51:22 +0000 (13:51 +0100)
commit891f1041d61ad86bbdc2e9b3423b04ec856a8058
treec58f2f79e8301305f3f6a6f51aa5a788468c38c1
parent1cd2f0072fa482e25baa2051f4d2b373424d6d4e
transfer: avoid unreachable expression

If curl_off_t and size_t have the same size (which is common on modern
64 bit systems), a condition cannot occur which Coverity pointed
out. Avoid the warning by having the code conditionally only used if
curl_off_t actually is larger.

Follow-up to 1cd2f0072fa482e25baa2

Closes #12370
lib/transfer.c