diff options
Diffstat (limited to 'libopkg/opkg_download.c')
-rw-r--r-- | libopkg/opkg_download.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libopkg/opkg_download.c b/libopkg/opkg_download.c index e53e64e..cda5ae8 100644 --- a/libopkg/opkg_download.c +++ b/libopkg/opkg_download.c @@ -555,14 +555,16 @@ end: #endif -#ifdef HAVE_CURL void opkg_curl_cleanup(void){ +#ifdef HAVE_CURL if(curl != NULL){ curl_easy_cleanup (curl); curl = NULL; } +#endif } +#ifdef HAVE_CURL static CURL * opkg_curl_init(curl_progress_func cb, void *data) { |