X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=commit.c;h=2717dd81c346d89bf5d6727e3aa1f5b65ff39aca;hb=55e1805dffeb5d2a8ccd717b2d07ca8887436a69;hp=05c4c923faaa1b2ee0c48ebc4230657fbbab6077;hpb=5bc4ce589646faf72c7a77a5d32d9496ccc8d456;p=git.git diff --git a/commit.c b/commit.c index 05c4c923..2717dd81 100644 --- a/commit.c +++ b/commit.c @@ -160,7 +160,7 @@ struct commit_graft *read_graft_line(char *buf, int len) if (buf[len-1] == '\n') buf[--len] = 0; - if (buf[0] == '#') + if (buf[0] == '#' || buf[0] == '\0') return NULL; if ((len + 1) % 41) { bad_graft_data: