mirror of
https://github.com/git/git
synced 2024-11-04 16:17:49 +00:00
Merge branch 'kl/attr-read-attr-fromindex-msan-workaround'
Code clarification to avoid an appearance of using an uninitialized variable. * kl/attr-read-attr-fromindex-msan-workaround: attr: fix msan issue in read_attr_from_index
This commit is contained in:
commit
532083fd16
1 changed files with 2 additions and 1 deletions
3
attr.c
3
attr.c
|
@ -865,7 +865,8 @@ static struct attr_stack *read_attr_from_index(struct index_state *istate,
|
|||
stack = read_attr_from_blob(istate, &istate->cache[sparse_dir_pos]->oid, relative_path, flags);
|
||||
} else {
|
||||
buf = read_blob_data_from_index(istate, path, &size);
|
||||
stack = read_attr_from_buf(buf, size, path, flags);
|
||||
if (buf)
|
||||
stack = read_attr_from_buf(buf, size, path, flags);
|
||||
}
|
||||
return stack;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue