Call curl_global_init() at the beginning of program.

This commit is contained in:
Jonathan Xu 2017-05-25 11:34:20 +08:00
parent f6b66ebf77
commit 7c7baddf2f
2 changed files with 2 additions and 2 deletions

View File

@ -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);

View File

@ -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