summaryrefslogtreecommitdiff
path: root/src/commit_list.c
diff options
context:
space:
mode:
authorVicent Marti <tanoku@gmail.com>2015-10-28 10:50:25 +0100
committerVicent Marti <tanoku@gmail.com>2015-10-28 10:50:25 +0100
commitd3416dfe29e59ba7de7bf49e060bf13c07960344 (patch)
treead6c0dab5352f7aae0968b167c212ef5ed024794 /src/commit_list.c
parent66eb7660a87a1fe56fde21a7e544e34224a3a257 (diff)
downloadlibgit2-d3416dfe29e59ba7de7bf49e060bf13c07960344.tar.gz
pool: Dot not assume mallocs are zeroed out
Diffstat (limited to 'src/commit_list.c')
-rw-r--r--src/commit_list.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/commit_list.c b/src/commit_list.c
index 53612d514..28948c88b 100644
--- a/src/commit_list.c
+++ b/src/commit_list.c
@@ -47,7 +47,7 @@ git_commit_list *git_commit_list_insert_by_date(git_commit_list_node *item, git_
git_commit_list_node *git_commit_list_alloc_node(git_revwalk *walk)
{
- return (git_commit_list_node *)git_pool_malloc(&walk->commit_pool, COMMIT_ALLOC);
+ return (git_commit_list_node *)git_pool_mallocz(&walk->commit_pool, 1);
}
static int commit_error(git_commit_list_node *commit, const char *msg)