From: Jens Lehmann Date: Thu, 24 Sep 2009 16:56:28 +0000 (+0200) Subject: git-gui: fix use of uninitialized variable X-Git-Tag: v1.6.6-rc0~96^2~1 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=cd846aa183a01b8d881122a938f93ba38bc12629;p=git.git git-gui: fix use of uninitialized variable This fixes a bug introduced by the "display summary when showing diff of a submodule" patch. It lead to a "no such variable" error when opening the diff context menu while no diff was shown. Signed-off-by: Jens Lehmann Signed-off-by: Shawn O. Pearce --- diff --git a/git-gui.sh b/git-gui.sh index 88d1025dd..09b27203d 100755 --- a/git-gui.sh +++ b/git-gui.sh @@ -1134,6 +1134,7 @@ set current_branch {} set is_detached 0 set current_diff_path {} set is_3way_diff 0 +set is_submodule_diff 0 set is_conflict_diff 0 set selected_commit_type new set diff_empty_count 0