[PATCH] Fix git patch header processing in git-apply.

Stop processing and return NULL if we encounter a '\n' character
before we have two matching names in the git header.

Signed-off-by: Robert Fitzsimons <robfitz@273k.net>
Signed-off-by: Junio C Hamano <junkio@cox.net>
This commit is contained in:
Robert Fitzsimons 2005-08-28 15:24:27 +00:00 committed by Junio C Hamano
parent ba966b9579
commit e70a165d3d

View file

@ -387,7 +387,7 @@ static char *git_header_name(char *line)
default:
continue;
case '\n':
break;
return NULL;
case '\t': case ' ':
second = name+len;
for (;;) {