Skip to content

Commit cdedef4

Browse files
committed
Initialize refs vector in git_remote_update_tips().
Otherwise, bailing out early when ls_to_vector() fails accesses uninitialized memory.
1 parent 9bbc8f3 commit cdedef4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/remote.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1458,7 +1458,7 @@ int git_remote_update_tips(
14581458
const char *reflog_message)
14591459
{
14601460
git_refspec *spec, tagspec;
1461-
git_vector refs;
1461+
git_vector refs = GIT_VECTOR_INIT;
14621462
int error;
14631463
size_t i;
14641464

0 commit comments

Comments
 (0)