Cleanup variables in http.[ch]
[gitweb.git] / builtin-checkout-index.c
index e6264c4bf0ef537ea7ea2127133d1fad5a33b7d6..70d619da8d051f8d739911cfbbf8a5255787ec07 100644 (file)
@@ -66,9 +66,7 @@ static void write_tempfile_record(const char *name, int prefix_length)
                fputs(topath[checkout_stage], stdout);
 
        putchar('\t');
-       write_name_quoted("", 0, name + prefix_length,
-               line_termination, stdout);
-       putchar(line_termination);
+       write_name_quoted(name + prefix_length, stdout, line_termination);
 
        for (i = 0; i < 4; i++) {
                topath[i][0] = 0;