summaryrefslogtreecommitdiff
path: root/lib/libalpm/alpm.c
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2011-09-28 12:06:36 -0500
committerDan McGee <dan@archlinux.org>2011-09-28 13:01:03 -0500
commit9a58d5c6c5a69ebf7a920c357820a59c19d5b641 (patch)
tree1e5b5744e4c32b8e88c9ce4d96eb6bbc72eb4842 /lib/libalpm/alpm.c
parent83f99bfb39841b254046f6c8a210b6a91aca22ee (diff)
downloadpacman-9a58d5c6c5a69ebf7a920c357820a59c19d5b641.tar.xz
Initialize cURL library on first use
Rather than always initializing it on any handle creation. There are several frontend operations (search, info, etc.) that never need the download code, so spending time initializing this every single time is a bit silly. This makes it a bit more like the GPGME code init path. Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'lib/libalpm/alpm.c')
-rw-r--r--lib/libalpm/alpm.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/lib/libalpm/alpm.c b/lib/libalpm/alpm.c
index 772c84d9..38843342 100644
--- a/lib/libalpm/alpm.c
+++ b/lib/libalpm/alpm.c
@@ -78,11 +78,6 @@ alpm_handle_t SYMEXPORT *alpm_initialize(const char *root, const char *dbpath,
bindtextdomain("libalpm", LOCALEDIR);
#endif
-#ifdef HAVE_LIBCURL
- curl_global_init(CURL_GLOBAL_SSL);
- myhandle->curl = curl_easy_init();
-#endif
-
return myhandle;
cleanup: