diff options
-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); |