Browse Source

- reduced scope

master
Andreas Romeyke 3 years ago
parent
commit
68e25b5b0b
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/lib/fetchfile.cpp

+ 1
- 1
src/lib/fetchfile.cpp View File

@ -43,10 +43,10 @@ bool Fetchfile::fetch( list<string> &log, fetch_t fetch ) {
// }
CURL *curl;
FILE *fp;
CURLcode result;
curl = curl_easy_init();
if (curl) {
FILE *fp;
fp = fopen( fetch.filename.c_str(), "wb");
curl_easy_setopt(curl, CURLOPT_URL, fetch.url.c_str());
// FIXME: curl needs a write function if WIN32,


Loading…
Cancel
Save