mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-27 22:41:37 +00:00
Initialize refs vector in git_remote_update_tips().
Otherwise, bailing out early when ls_to_vector() fails accesses uninitialized memory.
This commit is contained in:
parent
9bbc8f350b
commit
cdedef4061
@ -1458,7 +1458,7 @@ int git_remote_update_tips(
|
||||
const char *reflog_message)
|
||||
{
|
||||
git_refspec *spec, tagspec;
|
||||
git_vector refs;
|
||||
git_vector refs = GIT_VECTOR_INIT;
|
||||
int error;
|
||||
size_t i;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user