Skip to content

Commit

Permalink
Fixed references to curl init/cleanup functions in fetch.
Browse files Browse the repository at this point in the history
  • Loading branch information
nmoinvaz committed Dec 4, 2022
1 parent 4295891 commit 940848a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fetch_curl.c
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ static size_t fetch_write_script(void *contents, size_t size, size_t nscriptb, v
char *fetch_get(const char *url, int32_t *error) {
script_s script = {(char *)calloc(1, sizeof(char)), 0};

CURL *curl_handle = curl_easy_global_init();
CURL *curl_handle = curl_easy_init();
if (!curl_handle) {
LOG_ERROR("Unable to initialize curl handle\n");
return NULL;
Expand Down Expand Up @@ -81,7 +81,7 @@ char *fetch_get(const char *url, int32_t *error) {
}

bool fetch_global_init(void) {
CURLcode res = curl_global_global_init(CURL_GLOBAL_ALL);
CURLcode res = curl_global_init(CURL_GLOBAL_ALL);
if (res != CURLE_OK) {
LOG_ERROR("Unable to initialize curl\n");
return false;
Expand Down

0 comments on commit 940848a

Please sign in to comment.