don't do final newline output when using progress callback

This commit is contained in:
Daniel Stenberg 2001-08-02 17:05:11 +00:00
parent 3e0a95bb78
commit 2b44fdab2e

View 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");
}
}