diff options
author | Marcel Raad <Marcel.Raad@teamviewer.com> | 2019-05-21 10:58:21 +0200 |
---|---|---|
committer | Marcel Raad <Marcel.Raad@teamviewer.com> | 2019-05-22 10:06:25 +0200 |
commit | f91baf842ac869f6a849ce4ac4c5ede8a3b49fd2 (patch) | |
tree | e795873bb8088d762b2a779746b71b7177e69385 /docs/examples/sftpuploadresume.c | |
parent | 10b7067eb722bf2bc19f4dd6d97199be705baea2 (diff) |
examples: remove dead variable stores
Closes https://github.com/curl/curl/pull/3919
Diffstat (limited to 'docs/examples/sftpuploadresume.c')
-rw-r--r-- | docs/examples/sftpuploadresume.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/docs/examples/sftpuploadresume.c b/docs/examples/sftpuploadresume.c index 98f3b62f0..e7d9d23f6 100644 --- a/docs/examples/sftpuploadresume.c +++ b/docs/examples/sftpuploadresume.c @@ -49,9 +49,8 @@ static curl_off_t sftpGetRemoteFileSize(const char *i_remoteFile) { CURLcode result = CURLE_GOT_NOTHING; curl_off_t remoteFileSizeByte = -1; - CURL *curlHandlePtr = NULL; + CURL *curlHandlePtr = curl_easy_init(); - curlHandlePtr = curl_easy_init(); curl_easy_setopt(curlHandlePtr, CURLOPT_VERBOSE, 1L); curl_easy_setopt(curlHandlePtr, CURLOPT_URL, i_remoteFile); |