Commit b8df28a5dae65b617ce85e1937066093600880af

Russell Belfer 2013-06-30T08:38:10

Clean up left over alloc change

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/submodule.c b/src/submodule.c
index 6859063..b5dacc4 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;