mirror of
https://github.com/haiwen/seafile.git
synced 2025-01-09 04:17:30 +08:00
Call curl_global_init() at the beginning of program.
This commit is contained in:
parent
f6b66ebf77
commit
7c7baddf2f
@ -314,8 +314,6 @@ reset_bytes (void *vdata)
|
||||
int
|
||||
http_tx_manager_start (HttpTxManager *mgr)
|
||||
{
|
||||
curl_global_init (CURL_GLOBAL_ALL);
|
||||
|
||||
#ifdef WIN32
|
||||
/* Remove existing ca-bundle file on start. */
|
||||
g_unlink (mgr->priv->ca_bundle_path);
|
||||
|
@ -503,6 +503,8 @@ main (int argc, char **argv)
|
||||
|
||||
cdc_init ();
|
||||
|
||||
curl_global_init (CURL_GLOBAL_ALL);
|
||||
|
||||
#if !GLIB_CHECK_VERSION(2, 35, 0)
|
||||
g_type_init();
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user