help: check early if we have a command, if not try a documentation topic
[gitweb.git] / diff.c
diff --git a/diff.c b/diff.c
index f281c5b82a623623f5840c19261155ede81e1301..893942359bee551e4460449f66279f1a91ec6ab7 100644 (file)
--- a/diff.c
+++ b/diff.c
@@ -928,7 +928,8 @@ static void show_stats(struct diffstat_t* data, struct diff_options *options)
                        total = add + del;
                }
                show_name(options->file, prefix, name, len, reset, set);
-               fprintf(options->file, "%5d ", added + deleted);
+               fprintf(options->file, "%5d%s", added + deleted,
+                               added + deleted ? " " : "");
                show_graph(options->file, '+', add, add_c, reset);
                show_graph(options->file, '-', del, del_c, reset);
                fprintf(options->file, "\n");