Clean up left over alloc change

This commit is contained in:
Russell Belfer 2013-06-30 08:38:10 -07:00
parent f9775a37aa
commit b8df28a5da

View File

@ -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;