Curl_pgrsStartNow: clear all bits except HIDE
authorDaniel Stenberg <daniel@haxx.se>
Sun, 7 Aug 2011 20:26:57 +0000 (22:26 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Sun, 7 Aug 2011 20:26:57 +0000 (22:26 +0200)
Bug: http://curl.haxx.se/bug/view.cgi?id=3385258
Reported by: Ben Winslow

lib/progress.c

index 9f20a00..9ad9241 100644 (file)
@@ -201,7 +201,7 @@ void Curl_pgrsStartNow(struct SessionHandle *data)
 {
   data->progress.speeder_c = 0; /* reset the progress meter display */
   data->progress.start = Curl_tvnow();
-  data->progress.flags = 0;
+  data->progress.flags &= ~PGRS_HIDE; /* clear all bits except HIDE */
 }
 
 void Curl_pgrsSetDownloadCounter(struct SessionHandle *data, curl_off_t size)