Skip to content

Commit

Permalink
git-apply: unknown modes are zero, not -1
Browse files Browse the repository at this point in the history
  • Loading branch information
Linus Torvalds committed May 23, 2005
1 parent b6d8f30 commit 881b076
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apply.c
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ static int find_header(char *line, unsigned long size, int *hdrsize)

is_rename = is_copy = 0;
is_new = is_delete = -1;
old_mode = new_mode = -1;
old_mode = new_mode = 0;
def_name = old_name = new_name = NULL;
for (offset = 0; size > 0; offset += len, size -= len, line += len, linenr++) {
unsigned long nextlen;
Expand Down

0 comments on commit 881b076

Please sign in to comment.