mirror of
https://git.proxmox.com/git/libgit2
synced 2026-01-21 22:41:27 +00:00
Use git_oid_cpy() instead of memcpy()
This commit is contained in:
parent
623fbd93f1
commit
35df76bdd9
@ -621,7 +621,7 @@ int git_diff__oid_for_entry(
|
||||
git_index *idx;
|
||||
|
||||
if (!(error = git_repository_index__weakptr(&idx, diff->repo))) {
|
||||
memcpy(&entry.id, out, sizeof(entry.id));
|
||||
git_oid_cpy(&entry.id, out);
|
||||
error = git_index_add(idx, &entry);
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user