summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaurence McGlashan <mail@laurencemcglashan.com>2023-03-10 09:32:33 +0000
committerGitHub <noreply@github.com>2023-03-10 09:32:33 +0000
commit5b711335603b6d6abe6ae9bf09f570ada66232ef (patch)
tree03a62ed0b5a70aebf4996237d2894b693223a0ca
parente3bf6db55c5ca9e22ab08ebe3170252c8af775d7 (diff)
downloadlibgit2-5b711335603b6d6abe6ae9bf09f570ada66232ef.tar.gz
Update src/libgit2/fetch.c
Co-authored-by: Qix <Qix-@users.noreply.github.com>
-rw-r--r--src/libgit2/fetch.c2
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);