diff.c: omit check for line prefix in emit_line_0
[gitweb.git] / diff.c
diff --git a/diff.c b/diff.c
index 4f430f44e642d035d60476fb45d3117cbd6872fb..7a23adf254d24a1b25c9d78eaac54f0721998a62 100644 (file)
--- a/diff.c
+++ b/diff.c
@@ -629,10 +629,7 @@ static void emit_line_0(struct diff_options *o,
        int nofirst;
        FILE *file = o->file;
 
-       if (first)
-               fputs(diff_line_prefix(o), file);
-       else if (!len)
-               return;
+       fputs(diff_line_prefix(o), file);
 
        if (len == 0) {
                has_trailing_newline = (first == '\n');