test-lib.sh: Suppress the "passed all ..." message if no tests run
[gitweb.git] / diff.c
diff --git a/diff.c b/diff.c
index 62cbe141efb411e831484fc36c0cba95a2b8846b..95706a5b4098afc8f20fe53425ff760c996a3b4e 100644 (file)
--- a/diff.c
+++ b/diff.c
@@ -1397,7 +1397,7 @@ int print_stat_summary(FILE *fp, int files, int insertions, int deletions)
 
        if (!files) {
                assert(insertions == 0 && deletions == 0);
-               return fputs(_(" 0 files changed\n"), fp);
+               return fprintf(fp, "%s\n", _(" 0 files changed"));
        }
 
        strbuf_addf(&sb,