From 7b155f111daf5d7ae477b16d0f0789b1113bea74 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 6 Jun 2012 00:04:33 +0300 Subject: Fix some issues after auto checking. --- src/net/download.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/net/download.cpp') diff --git a/src/net/download.cpp b/src/net/download.cpp index 1acb4b59b..a4eb31603 100644 --- a/src/net/download.cpp +++ b/src/net/download.cpp @@ -64,9 +64,9 @@ Download::Download(void *ptr, const std::string &url, mThread(nullptr), mCurl(nullptr), mHeaders(nullptr), + mError(static_cast(calloc(CURL_ERROR_SIZE + 1, 1))), mIgnoreError(ignoreError) { - mError = static_cast(calloc(CURL_ERROR_SIZE + 1, 1)); mError[0] = 0; mOptions.cancel = 0; -- cgit v1.2.3-70-g09d2