aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2001-08-02 17:05:11 +0000
committerDaniel Stenberg <daniel@haxx.se>2001-08-02 17:05:11 +0000
commit2b44fdab2ebf7b7de65fa5e6699bb56167224a47 (patch)
treea254617f052a8f63a469f2bd6f2bb37c72ca618d
parent3e0a95bb78212e9112b00f8dc8b52367ea675c47 (diff)
don't do final newline output when using progress callback
-rw-r--r--lib/progress.c4
1 files changed, 3 insertions, 1 deletions
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");
}
}