From cbcc1236f806f18e6386e6e1f495a9832b7d307d Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Fri, 5 Mar 2010 23:38:54 +0100 Subject: tftp: do not show progress bar if we get error right away. +13 bytes Signed-off-by: Denys Vlasenko --- libbb/progress.c | 1 + 1 file changed, 1 insertion(+) (limited to 'libbb/progress.c') diff --git a/libbb/progress.c b/libbb/progress.c index 3a245ae6c..0e484da6c 100644 --- a/libbb/progress.c +++ b/libbb/progress.c @@ -57,6 +57,7 @@ void FAST_FUNC bb_progress_init(bb_progress_t *p) p->start_sec = monotonic_sec(); p->lastupdate_sec = p->start_sec; p->lastsize = 0; + p->inited = 1; } void FAST_FUNC bb_progress_update(bb_progress_t *p, -- cgit v1.2.3