Code should only be generated when --libcurl is used.
Bug: https://github.com/bagder/curl/issues/429
Reported-by: @greafhe, Jay Satiro
Closes #429
Closes #442
retrystart = tvnow();
#ifndef CURL_DISABLE_LIBCURL_OPTION
- result = easysrc_perform();
- if(result) {
- goto show_error;
+ if(global->libcurl) {
+ result = easysrc_perform();
+ if(result)
+ goto show_error;
}
#endif
else {
#ifndef CURL_DISABLE_LIBCURL_OPTION
/* Initialise the libcurl source output */
- result = easysrc_init();
+ if(config->libcurl)
+ result = easysrc_init();
#endif
/* Perform the main operations */