From: Robert Fitzsimons Date: Sun, 28 Aug 2005 15:24:27 GMT Subject: [PATCH 1/9] Fix git patch header processing in git-apply. Message-ID: <11252426672473-git-send-email-robfitz@273k.net> 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 --- apply.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) 289e53f770e37dfe25c740788256d24c19c2e16d diff --git a/apply.c b/apply.c --- 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 (;;) {