mirror of
https://github.com/git/git
synced 2024-11-05 18:59:29 +00:00
git-apply: unknown modes are zero, not -1
This commit is contained in:
parent
b6d8f309d9
commit
881b07654c
1 changed files with 1 additions and 1 deletions
2
apply.c
2
apply.c
|
@ -331,7 +331,7 @@ static int find_header(char *line, unsigned long size, int *hdrsize)
|
||||||
|
|
||||||
is_rename = is_copy = 0;
|
is_rename = is_copy = 0;
|
||||||
is_new = is_delete = -1;
|
is_new = is_delete = -1;
|
||||||
old_mode = new_mode = -1;
|
old_mode = new_mode = 0;
|
||||||
def_name = old_name = new_name = NULL;
|
def_name = old_name = new_name = NULL;
|
||||||
for (offset = 0; size > 0; offset += len, size -= len, line += len, linenr++) {
|
for (offset = 0; size > 0; offset += len, size -= len, line += len, linenr++) {
|
||||||
unsigned long nextlen;
|
unsigned long nextlen;
|
||||||
|
|
Loading…
Reference in a new issue