diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2010-03-05 23:38:54 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2010-03-05 23:38:54 +0100 |
commit | cbcc1236f806f18e6386e6e1f495a9832b7d307d (patch) | |
tree | 57679535a2d1ac60a6f2b3a21dc6afa9028b0cc0 /networking/tftp.c | |
parent | 4b1100edd8180efa2e81860ef2fadeebcb21f5fa (diff) | |
download | busybox-w32-cbcc1236f806f18e6386e6e1f495a9832b7d307d.tar.gz busybox-w32-cbcc1236f806f18e6386e6e1f495a9832b7d307d.tar.bz2 busybox-w32-cbcc1236f806f18e6386e6e1f495a9832b7d307d.zip |
tftp: do not show progress bar if we get error right away. +13 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'networking/tftp.c')
-rw-r--r-- | networking/tftp.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/networking/tftp.c b/networking/tftp.c index 0e5b48d40..d76f7ae5b 100644 --- a/networking/tftp.c +++ b/networking/tftp.c | |||
@@ -135,7 +135,8 @@ static void tftp_progress_init(void) | |||
135 | } | 135 | } |
136 | static void tftp_progress_done(void) | 136 | static void tftp_progress_done(void) |
137 | { | 137 | { |
138 | progress_meter(0); | 138 | if (G.pmt.inited) |
139 | progress_meter(0); | ||
139 | } | 140 | } |
140 | #else | 141 | #else |
141 | # define tftp_progress_init() ((void)0) | 142 | # define tftp_progress_init() ((void)0) |