Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
diff.c: Do not initialize a variable, which gets reassigned anyway.
author
Stefan Beller
<stefanbeller@googlemail.com>
Sun, 14 Jul 2013 21:35:49 +0000
(23:35 +0200)
committer
Junio C Hamano
<gitster@pobox.com>
Mon, 15 Jul 2013 16:45:21 +0000
(09:45 -0700)
Signed-off-by: Stefan Beller <stefanbeller@googlemail.com>
Reviewed-by: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
diff.c
patch
|
blob
|
history
raw
|
patch
| inline |
side by side
(from parent 1:
70a0cc9
)
diff --git
a/diff.c
b/diff.c
index 649ec86b87c4eb201f9e587a0173e381e9b5b8b5..2747e6f72ce97e24ade88a620b4b95ae6f6b5cb3 100644
(file)
--- a/
diff.c
+++ b/
diff.c
@@
-1683,9
+1683,7
@@
static void show_stats(struct diffstat_t *data, struct diff_options *options)
del = deleted;
if (graph_width <= max_change) {
- int total = add + del;
-
- total = scale_linear(add + del, graph_width, max_change);
+ int total = scale_linear(add + del, graph_width, max_change);
if (total < 2 && add && del)
/* width >= 2 due to the sanity check */
total = 2;