Commit cdedef40 by Sebastian Bauer

Initialize refs vector in git_remote_update_tips().

Otherwise, bailing out early when ls_to_vector() fails accesses
uninitialized memory.
parent 9bbc8f35
...@@ -1458,7 +1458,7 @@ int git_remote_update_tips( ...@@ -1458,7 +1458,7 @@ int git_remote_update_tips(
const char *reflog_message) const char *reflog_message)
{ {
git_refspec *spec, tagspec; git_refspec *spec, tagspec;
git_vector refs; git_vector refs = GIT_VECTOR_INIT;
int error; int error;
size_t i; 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