mirror of
https://github.com/curl/curl.git
synced 2026-04-26 08:02:11 +03: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
1 changed files with 5 additions and 7 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue