]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
don't do final newline output when using progress callback
authorDaniel Stenberg <daniel@haxx.se>
Thu, 2 Aug 2001 17:05:11 +0000 (17:05 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 2 Aug 2001 17:05:11 +0000 (17:05 +0000)
lib/progress.c

index 9fbd45c346fdac780cffa7dda6a4ae2002e67e4f..08d9c7890ac6abc0f507d7d328405065e400b865 100644 (file)
@@ -97,7 +97,9 @@ void Curl_pgrsDone(struct connectdata *conn)
   if(!(data->progress.flags & PGRS_HIDE)) {
     data->progress.lastshow=0;
     Curl_pgrsUpdate(conn); /* the final (forced) update */
-    fprintf(data->err, "\n");
+    if(!data->progress.callback)
+      /* only output if we don't use progress callback */
+      fprintf(data->err, "\n");
   }
 }