aboutsummaryrefslogtreecommitdiff
path: root/src/memfile.c
diff options
context:
space:
mode:
authorJohn Schmidt <john.schmidt.h@gmail.com>2014-04-18 01:52:48 +0200
committerThiago de Arruda <tpadilha84@gmail.com>2014-04-19 09:36:17 -0300
commit63cc8b6934e74da2fd13aa5d9f2254c257a45b1c (patch)
tree0af45b07e1d92d19529b69172431606def237102 /src/memfile.c
parent204d3dfafcc5b285d112e023dd5e5b6f1e861146 (diff)
downloadrneovim-63cc8b6934e74da2fd13aa5d9f2254c257a45b1c.tar.gz
rneovim-63cc8b6934e74da2fd13aa5d9f2254c257a45b1c.tar.bz2
rneovim-63cc8b6934e74da2fd13aa5d9f2254c257a45b1c.zip
Remove `lalloc_clear`
Use `xcalloc` instead. Change some local variables to avoid casting.
Diffstat (limited to 'src/memfile.c')
-rw-r--r--src/memfile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/memfile.c b/src/memfile.c
index 18d8712e27..4aad5470d2 100644
--- a/src/memfile.c
+++ b/src/memfile.c
@@ -1264,7 +1264,7 @@ static void mf_hash_grow(mf_hashtab_T *mht)
size_t size;
size = (mht->mht_mask + 1) * MHT_GROWTH_FACTOR * sizeof(void *);
- buckets = (mf_hashitem_T **)lalloc_clear(size, FALSE);
+ buckets = xcalloc(1, size);
shift = 0;
while ((mht->mht_mask >> shift) != 0)