Merge branch 'js/check-null-from-read-object-file'
The code paths that call repo_read_object_file() have been tightened to react to errors. * js/check-null-from-read-object-file: Always check the return value of `repo_read_object_file()`
This commit is contained in:
3
bisect.c
3
bisect.c
@ -158,6 +158,9 @@ static void show_list(const char *debug, int counted, int nr,
|
||||
const char *subject_start;
|
||||
int subject_len;
|
||||
|
||||
if (!buf)
|
||||
die(_("unable to read %s"), oid_to_hex(&commit->object.oid));
|
||||
|
||||
fprintf(stderr, "%c%c%c ",
|
||||
(commit_flags & TREESAME) ? ' ' : 'T',
|
||||
(commit_flags & UNINTERESTING) ? 'U' : ' ',
|
||||
|
Reference in New Issue
Block a user