summaryrefslogtreecommitdiff
path: root/src/net/download.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-09-11 20:03:02 +0300
committerAndrei Karas <akaras@inbox.ru>2012-09-11 20:03:02 +0300
commit91fa2122a536770924bb2819bec4b79e76393d08 (patch)
tree93c0e191249b2158cf92a564630a4b16e9ccdcaa /src/net/download.cpp
parent1a524dc9468fe532bc060a73ef736a68687aadca (diff)
downloadmv-91fa2122a536770924bb2819bec4b79e76393d08.tar.gz
mv-91fa2122a536770924bb2819bec4b79e76393d08.tar.bz2
mv-91fa2122a536770924bb2819bec4b79e76393d08.tar.xz
mv-91fa2122a536770924bb2819bec4b79e76393d08.zip
Fix code style and small perfomance issues.
Diffstat (limited to 'src/net/download.cpp')
-rw-r--r--src/net/download.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/net/download.cpp b/src/net/download.cpp
index 5d35e1ace..9c9a777fa 100644
--- a/src/net/download.cpp
+++ b/src/net/download.cpp
@@ -206,7 +206,6 @@ int Download::downloadThread(void *ptr)
while (attempts < 3 && !complete && !d->mOptions.cancel)
{
- FILE *file = nullptr;
d->mUpdateFunction(d->mPtr, DOWNLOAD_STATUS_STARTING, 0, 0);
@@ -221,6 +220,7 @@ int Download::downloadThread(void *ptr)
if (d->mCurl && !d->mOptions.cancel)
{
+ FILE *file = nullptr;
logger->log("Downloading: %s", d->mUrl.c_str());
curl_easy_setopt(d->mCurl, CURLOPT_FOLLOWLOCATION, 1);