diff options
-rw-r--r-- | commit.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -311,6 +311,8 @@ int parse_commit(struct commit *item) unsigned long size; int ret; + if (!item) + return -1; if (item->object.parsed) return 0; buffer = read_sha1_file(item->object.sha1, &type, &size); |