diff options
author | Dan McGee <dan@archlinux.org> | 2011-09-28 12:06:36 -0500 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2011-09-28 13:01:03 -0500 |
commit | 9a58d5c6c5a69ebf7a920c357820a59c19d5b641 (patch) | |
tree | 1e5b5744e4c32b8e88c9ce4d96eb6bbc72eb4842 /lib/libalpm/alpm.c | |
parent | 83f99bfb39841b254046f6c8a210b6a91aca22ee (diff) | |
download | pacman-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.c | 5 |
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: |