@matheusbsbs / matheus-bagliano / commits / 6534141151
Fork 0

Fix "Do not ignore a detected patchfile brokenness."

Returning negative value from there does not stop the caller from using the earlier part. Noticed by Linus. Signed-off-by: Junio C Hamano <junkio@cox.net>

Junio C Hamano committed Jan 9, 2007 at 11:50 UTC 6534141151f7fd4334f62827d9234acf3974ca4d
1 file changed +2 -1
builtin-apply.c
+2 -1
@@ -812,7 +812,8 @@ static int find_header(char *line, unsigned long size, int *hdrsize, struct patc
812 struct fragment dummy;
813 if (parse_fragment_header(line, len, &dummy) < 0)
814 continue;
815 - return error("patch fragment without header at line %d: %.*s", linenr, (int)len-1, line);
815 + die("patch fragment without header at line %d: %.*s",
816 + linenr, (int)len-1, line);
817 }
818
819 if (size < len + 6)