Remove lalloc_clear

Use `xcalloc` instead. Change some local variables
to avoid casting.
This commit is contained in:
John Schmidt
2014-04-18 01:52:48 +02:00
committed by Thiago de Arruda
parent 204d3dfafc
commit 63cc8b6934
7 changed files with 9 additions and 22 deletions

View File

@@ -3657,7 +3657,7 @@ spell_read_tree (
*bytsp = bp;
/* Allocate the index array. */
ip = (idx_T *)lalloc_clear((long_u)(len * sizeof(int)), TRUE);
ip = xcalloc(len, sizeof(*ip));
*idxsp = ip;
/* Recursively read the tree and store it in the array. */