Don't call curl_global_init twice

This commit is contained in:
Kahrl 2013-12-13 18:08:53 +01:00
parent 0d990bd189
commit e275b7099a

@ -86,10 +86,6 @@ with this program; if not, write to the Free Software Foundation, Inc.,
#include "database-leveldb.h" #include "database-leveldb.h"
#endif #endif
#if USE_CURL
#include "curl/curl.h"
#endif
/* /*
Settings. Settings.
These are loaded from the config file. These are loaded from the config file.
@ -997,11 +993,6 @@ int main(int argc, char *argv[])
srand(time(0)); srand(time(0));
mysrand(time(0)); mysrand(time(0));
#if USE_CURL
CURLcode res = curl_global_init(CURL_GLOBAL_DEFAULT);
assert(res == CURLE_OK);
#endif
// Initialize HTTP fetcher // Initialize HTTP fetcher
httpfetch_init(g_settings->getS32("curl_parallel_limit")); httpfetch_init(g_settings->getS32("curl_parallel_limit"));