Skip to content

Commit ba5d445

Browse files
Clemens Buchacherpatthoyts
authored andcommitted
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 <[email protected]> Signed-off-by: Pat Thoyts <[email protected]>
1 parent 942e6ba commit ba5d445

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/status_bar.tcl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ method start {msg uds} {
7777

7878
method update {have total} {
7979
set pdone 0
80+
set cdone 0
8081
if {$total > 0} {
8182
set pdone [expr {100 * $have / $total}]
8283
set cdone [expr {[winfo width $w_c] * $have / $total}]

0 commit comments

Comments
 (0)