From: Robert Fitzsimons Date: Sun, 28 Aug 2005 15:24:27 +0000 (+0000) Subject: [PATCH] Fix git patch header processing in git-apply. X-Git-Tag: v0.99.6~72 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=e70a165d3db26dbab62e3430553a21d5e97b74ec;p=git.git [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 Signed-off-by: Junio C Hamano --- diff --git a/apply.c b/apply.c index 7c1a8411f..3ebbf6b1d 100644 --- a/apply.c +++ b/apply.c @@ -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 (;;) {