mirror of
https://github.com/moparisthebest/curl
synced 2025-01-06 03:18:04 -05:00
tool: generate easysrc only on --libcurl
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
This commit is contained in:
parent
47b7d658b4
commit
4d95491636
@ -1369,9 +1369,10 @@ static CURLcode operate_do(struct GlobalConfig *global,
|
|||||||
retrystart = tvnow();
|
retrystart = tvnow();
|
||||||
|
|
||||||
#ifndef CURL_DISABLE_LIBCURL_OPTION
|
#ifndef CURL_DISABLE_LIBCURL_OPTION
|
||||||
result = easysrc_perform();
|
if(global->libcurl) {
|
||||||
if(result) {
|
result = easysrc_perform();
|
||||||
goto show_error;
|
if(result)
|
||||||
|
goto show_error;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@ -1863,7 +1864,8 @@ CURLcode operate(struct GlobalConfig *config, int argc, argv_item_t argv[])
|
|||||||
else {
|
else {
|
||||||
#ifndef CURL_DISABLE_LIBCURL_OPTION
|
#ifndef CURL_DISABLE_LIBCURL_OPTION
|
||||||
/* Initialise the libcurl source output */
|
/* Initialise the libcurl source output */
|
||||||
result = easysrc_init();
|
if(config->libcurl)
|
||||||
|
result = easysrc_init();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Perform the main operations */
|
/* Perform the main operations */
|
||||||
|
Loading…
Reference in New Issue
Block a user