summaryrefslogtreecommitdiff
path: root/docs/examples/sftpuploadresume.c
diff options
context:
space:
mode:
Diffstat (limited to 'docs/examples/sftpuploadresume.c')
-rw-r--r--docs/examples/sftpuploadresume.c3
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);