diff options
author | Daniel Lee Hwang <danielleehwang@gmail.com> | 2015-09-19 23:16:23 -0700 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2015-09-20 12:54:18 +0200 |
commit | 4d95491636eeb14e32c287ef183dbcdc05074f48 (patch) | |
tree | 6dd20a64375a646ea7f3e1bbdce61b1720c176cb /src/tool_operate.c | |
parent | 47b7d658b45ec1394edb6806c2667cecee13ff10 (diff) |
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
Diffstat (limited to 'src/tool_operate.c')
-rw-r--r-- | src/tool_operate.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/tool_operate.c b/src/tool_operate.c index 38d355da5..4e0f02807 100644 --- a/src/tool_operate.c +++ b/src/tool_operate.c @@ -1369,9 +1369,10 @@ static CURLcode operate_do(struct GlobalConfig *global, 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 @@ -1863,7 +1864,8 @@ CURLcode operate(struct GlobalConfig *config, int argc, argv_item_t argv[]) 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 */ |