diff options
author | Daniel Stenberg <daniel@haxx.se> | 2001-08-02 17:05:11 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2001-08-02 17:05:11 +0000 |
commit | 2b44fdab2ebf7b7de65fa5e6699bb56167224a47 (patch) | |
tree | a254617f052a8f63a469f2bd6f2bb37c72ca618d | |
parent | 3e0a95bb78212e9112b00f8dc8b52367ea675c47 (diff) |
don't do final newline output when using progress callback
-rw-r--r-- | lib/progress.c | 4 |
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"); } } |