diff options
| author | Russell Belfer <rb@github.com> | 2013-06-30 08:38:10 -0700 |
|---|---|---|
| committer | Russell Belfer <rb@github.com> | 2013-07-10 12:15:03 -0700 |
| commit | b8df28a5dae65b617ce85e1937066093600880af (patch) | |
| tree | dea98c6050eca01e09b788ca1543348b2995c04e /src/submodule.c | |
| parent | f9775a37aa4ed042839a6b2f9d8e0dfbd73a2f09 (diff) | |
| download | libgit2-b8df28a5dae65b617ce85e1937066093600880af.tar.gz | |
Clean up left over alloc change
Diffstat (limited to 'src/submodule.c')
| -rw-r--r-- | src/submodule.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |
