Code

show_patch_diff(): remove a call to fstat()
[git.git] / diff-lib.c
index a41e1ec07ccd707969aa51768dac3e2b6356ddc6..a3ba20ee294df4c68599e73fd6a350d4166340bb 100644 (file)
@@ -31,7 +31,7 @@ static int check_removed(const struct cache_entry *ce, struct stat *st)
                        return -1;
                return 1;
        }
-       if (has_symlink_leading_path(ce_namelen(ce), ce->name))
+       if (has_symlink_leading_path(ce->name, ce_namelen(ce)))
                return 1;
        if (S_ISDIR(st->st_mode)) {
                unsigned char sub[20];