From: Linus Torvalds Date: Mon, 23 May 2005 23:32:19 +0000 (-0700) Subject: git-apply: unknown modes are zero, not -1 X-Git-Tag: v0.99~483 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=881b07654c81a944001f25799908f65787c8a7ae;p=git.git git-apply: unknown modes are zero, not -1 --- diff --git a/apply.c b/apply.c index c3c7e6da5..dbcc07d39 100644 --- a/apply.c +++ b/apply.c @@ -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;