Merge branch 'bw/object-id'
Conversion from uchar[20] to struct object_id continues. * bw/object-id: receive-pack: don't access hash of NULL object_id pointer notes: don't access hash of NULL object_id pointer tree-diff: don't access hash of NULL object_id pointer
This commit is contained in:
@ -421,8 +421,9 @@ static struct combine_diff_path *ll_diff_tree_paths(
|
||||
* diff_tree_oid(parent, commit) )
|
||||
*/
|
||||
for (i = 0; i < nparent; ++i)
|
||||
tptree[i] = fill_tree_descriptor(&tp[i], parents_oid[i]->hash);
|
||||
ttree = fill_tree_descriptor(&t, oid->hash);
|
||||
tptree[i] = fill_tree_descriptor(&tp[i],
|
||||
parents_oid[i] ? parents_oid[i]->hash : NULL);
|
||||
ttree = fill_tree_descriptor(&t, oid ? oid->hash : NULL);
|
||||
|
||||
/* Enable recursion indefinitely */
|
||||
opt->pathspec.recursive = DIFF_OPT_TST(opt, RECURSIVE);
|
||||
|
||||
Reference in New Issue
Block a user