git-gui: fix git-gui crash due to uninitialized variable

Recently, a clone initiated via git gui on Windows crashed on me due to an "unknown variable cdone". It turns out that there is a code path where this variable is used uninitialized. Signed-off-by: Clemens Buchacher <drizzd@aon.at> Signed-off-by: Pat Thoyts <patthoyts@users.sourceforge.net>

Clemens Buchacher committed Jan 21, 2012 at 18:57 UTC ba5d445b653f874d9e4f2fd97fdd87438f45a70d
1 file changed +1
lib/status_bar.tcl
+1
@@ -77,6 +77,7 @@ method start {msg uds} {
77
78 method update {have total} {
79 set pdone 0
80 + set cdone 0
81 if {$total > 0} {
82 set pdone [expr {100 * $have / $total}]
83 set cdone [expr {[winfo width $w_c] * $have / $total}]