Commit 3440c202 by Sebastian Bauer Committed by Carlos Martín Nieto

Initialize refs vector in git_remote_update_tips().

Otherwise, bailing out early when ls_to_vector() fails accesses
uninitialized memory.
parent dcf6c0c4
......@@ -1459,7 +1459,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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment