diff options
author | Stefan Beller <stefanbeller@googlemail.com> | 2013-07-14 23:35:49 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2013-07-15 09:45:21 -0700 |
commit | d3c9cf32ca3b088fda54e7be311860f1f06fb11e (patch) | |
tree | 9c8b46cfb9006b55fd09d4503cc9b8aa130414ca /diff.c | |
parent | 70a0cc9e5c62f7b8ce0acc693e10a9e080f187ef (diff) | |
download | git-d3c9cf32ca3b088fda54e7be311860f1f06fb11e.tar.gz |
diff.c: Do not initialize a variable, which gets reassigned anyway.sb/misc-fixes
Signed-off-by: Stefan Beller <stefanbeller@googlemail.com>
Reviewed-by: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'diff.c')
-rw-r--r-- | diff.c | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -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; |