From ba5d445b653f874d9e4f2fd97fdd87438f45a70d Mon Sep 17 00:00:00 2001 From: Clemens Buchacher Date: Sat, 21 Jan 2012 18:57:28 +0100 Subject: [PATCH] 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 Signed-off-by: Pat Thoyts --- lib/status_bar.tcl | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/status_bar.tcl b/lib/status_bar.tcl index 95cb44991..02111a174 100644 --- a/lib/status_bar.tcl +++ b/lib/status_bar.tcl @@ -77,6 +77,7 @@ method start {msg uds} { method update {have total} { set pdone 0 + set cdone 0 if {$total > 0} { set pdone [expr {100 * $have / $total}] set cdone [expr {[winfo width $w_c] * $have / $total}] -- 2.26.2