diff options
author | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-05-23 16:32:19 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-05-23 16:32:19 -0700 |
commit | 881b07654c81a944001f25799908f65787c8a7ae (patch) | |
tree | 4e266e74bc3f0bcc9a6e19d13f7f11627f15ca81 /apply.c | |
parent | b6d8f309d9bbd8193d9b73eb41c6fcdaa8001298 (diff) | |
download | git-881b07654c81a944001f25799908f65787c8a7ae.tar.gz |
git-apply: unknown modes are zero, not -1
Diffstat (limited to 'apply.c')
-rw-r--r-- | apply.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |