Skip to content

Commit

Permalink
Fix "Do not ignore a detected patchfile brokenness."
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Junio C Hamano committed Jan 9, 2007
1 parent 5a17b54 commit 6534141
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion builtin-apply.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 6534141

Please sign in to comment.