Browse Source

Remove unused variable.

We do not report CURL errors to the user, so we can dispense with saving
the return code.
master
Damien Goutte-Gattat 3 months ago
parent
commit
3883253923
  1. 3
      src/scheme-libcurl.c

3
src/scheme-libcurl.c

@ -66,7 +66,6 @@ gfsec_scheme_libcurl_get_file(gfsec_scheme_t scheme,
char *url = NULL;
CURL *curl;
struct getfile_cb_data data = { 0 };
int cret;
if ( scheme != GFSEC_SCHEME_HTTP && scheme != GFSEC_SCHEME_HTTPS )
return GFSEC_SCHEME_STATUS_UNSUPPORTED_SCHEME;
@ -87,7 +86,7 @@ gfsec_scheme_libcurl_get_file(gfsec_scheme_t scheme,
if ( ret == 0 && curl_easy_setopt(curl, CURLOPT_WRITEDATA, (void *)&data) != 0 )
ret = GFSEC_SCHEME_STATUS_ERROR;
if ( ret == 0 && (cret = curl_easy_perform(curl)) != 0 )
if ( ret == 0 && curl_easy_perform(curl) != 0 )
ret = GFSEC_SCHEME_STATUS_ERROR;
if ( ret == 0 ) {

Loading…
Cancel
Save