summaryrefslogtreecommitdiff
path: root/lib/libalpm/handle.h
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/handle.h
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/handle.h')
-rw-r--r--lib/libalpm/handle.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/libalpm/handle.h b/lib/libalpm/handle.h
index b1d70d2d..8477dcae 100644
--- a/lib/libalpm/handle.h
+++ b/lib/libalpm/handle.h
@@ -60,7 +60,6 @@ struct __alpm_handle_t {
#ifdef HAVE_LIBCURL
/* libcurl handle */
CURL *curl; /* reusable curl_easy handle */
- CURLcode curlerr; /* last error produced by curl */
#endif
/* callback functions */