Skip to content

Commit 66764b2

Browse files
committed
Downloader: initialize progress variables.
1 parent 14eeaee commit 66764b2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

threaded-libcurl/Downloader.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class Downloader {
2121
public:
2222
bool terminated = false, done = false, failed = false;
2323
std::string error;
24-
curl_off_t current, total;
24+
curl_off_t current = 0, total = 0;
2525

2626
Downloader( std::string theUrl, std::string theOutfile );
2727
Downloader( std::string theUrl, std::string theOutfile, std::string theSha1 );

0 commit comments

Comments
 (0)