mirror of
https://git.proxmox.com/git/libgit2
synced 2026-01-06 04:46:34 +00:00
Clean up left over alloc change
This commit is contained in:
parent
f9775a37aa
commit
b8df28a5da
@ -966,7 +966,7 @@ static git_submodule *submodule_alloc(git_repository *repo, const char *name)
|
||||
return NULL;
|
||||
}
|
||||
|
||||
sm = git__calloc(1, sizeof(git_submodule) + namelen + 1);
|
||||
sm = git__calloc(1, sizeof(git_submodule));
|
||||
if (sm == NULL)
|
||||
return NULL;
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user