diff options
author | Paul Mackerras <paulus@samba.org> | 2008-12-02 09:17:46 +1100 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2008-12-02 09:28:06 +1100 |
commit | 6e7e87c762fb0d8aa21c96c1d2c4596e46f2ab7b (patch) | |
tree | e3a6ecf872be31310a7d2e8b78e505fbf4be79e9 | |
parent | 8b39e04f39c287d8c66b24cc4f6c72916831455c (diff) | |
download | git-6e7e87c762fb0d8aa21c96c1d2c4596e46f2ab7b.tar.gz |
gitk: Fix bug in accessing undefined "notflag" variable
As pointed out by Johannes Sixt and Alexander Gavrilov, commit
2958228430b63f2e38c55519d1f98d8d6d9e23f3 ("gitk: Fix switch statement
in parseviewargs") exposed a latent bug in that $notflag was never
initialized. Since it isn't used either, this removes it entirely.
Signed-off-by: Paul Mackerras <paulus@samba.org>
-rwxr-xr-x | gitk | 6 |
1 files changed, 1 insertions, 5 deletions
@@ -199,11 +199,7 @@ proc parseviewargs {n arglist} { set nextisval 1 lappend glflags $arg } - "--not" { - set notflag [expr {!$notflag}] - lappend revargs $arg - } - "--all" { + "--not" - "--all" { lappend revargs $arg } "--merge" { |