diff options
author | 2014-03-21 21:04:28 +0100 | |
---|---|---|
committer | 2014-03-21 21:04:28 +0100 | |
commit | 1e812367fb4f7579870e336767f3c59b0fd502c8 (patch) | |
tree | 533d817f80351bb0e5ba378a9e474439dc1c8ecd /src/idevicerestore.c | |
parent | 454541a3c9c7e6799713639213ecf0c93d2ef224 (diff) | |
download | idevicerestore-1e812367fb4f7579870e336767f3c59b0fd502c8.tar.gz idevicerestore-1e812367fb4f7579870e336767f3c59b0fd502c8.tar.bz2 |
move curl_global_init/_cleanup to a global context
Diffstat (limited to 'src/idevicerestore.c')
-rw-r--r-- | src/idevicerestore.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/idevicerestore.c b/src/idevicerestore.c index a08d319..6b7fb04 100644 --- a/src/idevicerestore.c +++ b/src/idevicerestore.c @@ -31,6 +31,8 @@ #include <zlib.h> #include <libgen.h> +#include <curl/curl.h> + #include "dfu.h" #include "tss.h" #include "img3.h" @@ -1138,10 +1140,14 @@ int main(int argc, char* argv[]) { client->ipsw = strdup(ipsw); } + curl_global_init(CURL_GLOBAL_ALL); + result = idevicerestore_start(client); idevicerestore_client_free(client); + curl_global_cleanup(); + return result; } #endif |