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:
@ -456,7 +456,7 @@ static int add(int argc, const char **argv, const char *prefix)
|
||||
oid_to_hex(&object));
|
||||
}
|
||||
|
||||
prepare_note_data(&object, &d, note->hash);
|
||||
prepare_note_data(&object, &d, note ? note->hash : NULL);
|
||||
if (d.buf.len || allow_empty) {
|
||||
write_note_data(&d, new_note.hash);
|
||||
if (add_note(t, &object, &new_note, combine_notes_overwrite))
|
||||
|
||||
Reference in New Issue
Block a user