Skip to content

Commit

Permalink
Don't call curl_global_init twice
Browse files Browse the repository at this point in the history
  • Loading branch information
kahrl committed Dec 13, 2013
1 parent 0d990bd commit e275b70
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions src/main.cpp
Expand Up @@ -86,10 +86,6 @@ with this program; if not, write to the Free Software Foundation, Inc.,
#include "database-leveldb.h"
#endif

#if USE_CURL
#include "curl/curl.h"
#endif

/*
Settings.
These are loaded from the config file.
Expand Down Expand Up @@ -997,11 +993,6 @@ int main(int argc, char *argv[])
srand(time(0));
mysrand(time(0));

#if USE_CURL
CURLcode res = curl_global_init(CURL_GLOBAL_DEFAULT);
assert(res == CURLE_OK);
#endif

// Initialize HTTP fetcher
httpfetch_init(g_settings->getS32("curl_parallel_limit"));

Expand Down

0 comments on commit e275b70

Please sign in to comment.