diff options
author | Laurence McGlashan <mail@laurencemcglashan.com> | 2023-03-10 09:32:33 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-10 09:32:33 +0000 |
commit | 5b711335603b6d6abe6ae9bf09f570ada66232ef (patch) | |
tree | 03a62ed0b5a70aebf4996237d2894b693223a0ca /src | |
parent | e3bf6db55c5ca9e22ab08ebe3170252c8af775d7 (diff) | |
download | libgit2-5b711335603b6d6abe6ae9bf09f570ada66232ef.tar.gz |
Update src/libgit2/fetch.c
Co-authored-by: Qix <Qix-@users.noreply.github.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/libgit2/fetch.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libgit2/fetch.c b/src/libgit2/fetch.c index 3a574e857..6bf16bc0f 100644 --- a/src/libgit2/fetch.c +++ b/src/libgit2/fetch.c @@ -195,7 +195,7 @@ int git_fetch_negotiate(git_remote *remote, const git_fetch_options *opts) */ remote->nego.refs = (const git_remote_head * const *)remote->refs.contents; remote->nego.count = remote->refs.length; - remote->nego.shallow_roots = git__malloc(sizeof(git_shallowarray)); + remote->nego.shallow_roots = git__malloc(sizeof(*remote->nego.shallow_roots)); git_array_init(remote->nego.shallow_roots->array); |