mirror of
https://github.com/moparisthebest/curl
synced 2025-01-11 05:58:01 -05:00
examples/sftpuploadresume: Value stored to 'result' is never read
Detected by scan-build
This commit is contained in:
parent
25233d9478
commit
5341c65667
@ -5,7 +5,7 @@
|
|||||||
* | (__| |_| | _ <| |___
|
* | (__| |_| | _ <| |___
|
||||||
* \___|\___/|_| \_\_____|
|
* \___|\___/|_| \_\_____|
|
||||||
*
|
*
|
||||||
* Copyright (C) 1998 - 2018, Daniel Stenberg, <daniel@haxx.se>, et al.
|
* Copyright (C) 1998 - 2019, Daniel Stenberg, <daniel@haxx.se>, et al.
|
||||||
*
|
*
|
||||||
* This software is licensed as described in the file COPYING, which
|
* This software is licensed as described in the file COPYING, which
|
||||||
* you should have received as part of this distribution. The terms
|
* you should have received as part of this distribution. The terms
|
||||||
@ -65,6 +65,8 @@ static curl_off_t sftpGetRemoteFileSize(const char *i_remoteFile)
|
|||||||
result = curl_easy_getinfo(curlHandlePtr,
|
result = curl_easy_getinfo(curlHandlePtr,
|
||||||
CURLINFO_CONTENT_LENGTH_DOWNLOAD_T,
|
CURLINFO_CONTENT_LENGTH_DOWNLOAD_T,
|
||||||
&remoteFileSizeByte);
|
&remoteFileSizeByte);
|
||||||
|
if(result)
|
||||||
|
return -1;
|
||||||
printf("filesize: %" CURL_FORMAT_CURL_OFF_T "\n", remoteFileSizeByte);
|
printf("filesize: %" CURL_FORMAT_CURL_OFF_T "\n", remoteFileSizeByte);
|
||||||
}
|
}
|
||||||
curl_easy_cleanup(curlHandlePtr);
|
curl_easy_cleanup(curlHandlePtr);
|
||||||
|
Loading…
Reference in New Issue
Block a user