mirror of
https://github.com/moparisthebest/curl
synced 2025-01-11 05:58:01 -05:00
version: Expression 'left > 1' is always true
Fixes warning detected by PVS-Studio Fixes #4374
This commit is contained in:
parent
389426e3d0
commit
317c97bd81
@ -104,14 +104,12 @@ char *curl_version(void)
|
||||
left -= len;
|
||||
ptr += len;
|
||||
|
||||
if(left > 1) {
|
||||
len = Curl_ssl_version(ptr + 1, left - 1);
|
||||
len = Curl_ssl_version(ptr + 1, left - 1);
|
||||
|
||||
if(len > 0) {
|
||||
*ptr = ' ';
|
||||
left -= ++len;
|
||||
ptr += len;
|
||||
}
|
||||
if(len > 0) {
|
||||
*ptr = ' ';
|
||||
left -= ++len;
|
||||
ptr += len;
|
||||
}
|
||||
|
||||
#ifdef HAVE_LIBZ
|
||||
|
Loading…
Reference in New Issue
Block a user