From: Daniel Stenberg Date: Wed, 19 Nov 2003 15:59:23 +0000 (+0000) Subject: unconditional progressbarinit cures a windows crash X-Git-Tag: curl-7_11_0~229 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e9a545c71036ee6a8448f8bad7a76b2cba4f27ae;p=curl unconditional progressbarinit cures a windows crash --- diff --git a/src/main.c b/src/main.c index 39ba0b2ef..be805ce15 100644 --- a/src/main.c +++ b/src/main.c @@ -3229,11 +3229,11 @@ operate(struct Configurable *config, int argc, char *argv[]) curl_easy_setopt(curl, CURLOPT_INTERFACE, config->iface); curl_easy_setopt(curl, CURLOPT_KRB4LEVEL, config->krb4level); + progressbarinit(&progressbar, config); if((config->progressmode == CURL_PROGRESS_BAR) && !(config->conf&(CONF_NOPROGRESS|CONF_MUTE))) { /* we want the alternative style, then we have to implement it ourselves! */ - progressbarinit(&progressbar, config); curl_easy_setopt(curl, CURLOPT_PROGRESSFUNCTION, myprogress); curl_easy_setopt(curl, CURLOPT_PROGRESSDATA, &progressbar); }