aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2003-11-19 15:59:23 +0000
committerDaniel Stenberg <daniel@haxx.se>2003-11-19 15:59:23 +0000
commite9a545c71036ee6a8448f8bad7a76b2cba4f27ae (patch)
tree8c575174e6e6604474445ad76b899fd3cd881995
parentedce44455161932d01513954e2e9fdb35f9e5709 (diff)
unconditional progressbarinit cures a windows crash
-rw-r--r--src/main.c2
1 files changed, 1 insertions, 1 deletions
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);
}