Commit 4d954916 authored by Daniel Lee Hwang's avatar Daniel Lee Hwang Committed by Daniel Stenberg
Browse files

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
parent 47b7d658
Loading
Loading
Loading
Loading
+6 −4
Original line number Original line Diff line number Diff line
@@ -1369,8 +1369,9 @@ static CURLcode operate_do(struct GlobalConfig *global,
        retrystart = tvnow();
        retrystart = tvnow();


#ifndef CURL_DISABLE_LIBCURL_OPTION
#ifndef CURL_DISABLE_LIBCURL_OPTION
        if(global->libcurl) {
          result = easysrc_perform();
          result = easysrc_perform();
        if(result) {
          if(result)
            goto show_error;
            goto show_error;
        }
        }
#endif
#endif
@@ -1863,6 +1864,7 @@ 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 */
      if(config->libcurl)
        result = easysrc_init();
        result = easysrc_init();
#endif
#endif