From 2b44fdab2ebf7b7de65fa5e6699bb56167224a47 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Thu, 2 Aug 2001 17:05:11 +0000 Subject: don't do final newline output when using progress callback --- lib/progress.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/progress.c b/lib/progress.c index 9fbd45c34..08d9c7890 100644 --- a/lib/progress.c +++ b/lib/progress.c @@ -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"); } } -- cgit v1.2.3