[PATCH] Fix git patch header processing in git-apply.
[gitweb.git] / apply.c
diff --git a/apply.c b/apply.c
index 7c1a8411f21ee42d095e6c5a515987ef2a6f779a..3ebbf6b1dcbd52d700c5d0e53cad4c3951cf1979 100644 (file)
--- 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 (;;) {