diff options
author | Sebastian Bauer <mail@sebastianbauer.info> | 2015-03-17 21:38:58 +0100 |
---|---|---|
committer | Sebastian Bauer <mail@sebastianbauer.info> | 2015-03-17 22:03:51 +0100 |
commit | cdedef4061faa0d79604575c0cd75421210e8680 (patch) | |
tree | e8e5bed08ffb403f59ef7af566c9fc19ed4980b4 /src/remote.c | |
parent | 9bbc8f350b80a5a6e94651ec667cf9e5d545b317 (diff) | |
download | libgit2-cdedef4061faa0d79604575c0cd75421210e8680.tar.gz |
Initialize refs vector in git_remote_update_tips().
Otherwise, bailing out early when ls_to_vector() fails accesses
uninitialized memory.
Diffstat (limited to 'src/remote.c')
-rw-r--r-- | src/remote.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/remote.c b/src/remote.c index 4924bf83a..bdb4b31df 100644 --- a/src/remote.c +++ b/src/remote.c @@ -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; |