mirror of
https://github.com/git/git
synced 2024-08-24 18:26:02 +00:00
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>
This commit is contained in:
parent
5a17b54ad5
commit
6534141151
|
@ -812,7 +812,8 @@ static int find_header(char *line, unsigned long size, int *hdrsize, struct patc
|
|||
struct fragment dummy;
|
||||
if (parse_fragment_header(line, len, &dummy) < 0)
|
||||
continue;
|
||||
return error("patch fragment without header at line %d: %.*s", linenr, (int)len-1, line);
|
||||
die("patch fragment without header at line %d: %.*s",
|
||||
linenr, (int)len-1, line);
|
||||
}
|
||||
|
||||
if (size < len + 6)
|
||||
|
|
Loading…
Reference in a new issue