From b8df28a5dae65b617ce85e1937066093600880af Mon Sep 17 00:00:00 2001 From: Russell Belfer Date: Sun, 30 Jun 2013 08:38:10 -0700 Subject: [PATCH] Clean up left over alloc change --- src/submodule.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/submodule.c b/src/submodule.c index 685906332..b5dacc42e 100644 --- a/src/submodule.c +++ b/src/submodule.c @@ -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; -- 2.39.5