X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/mLib/blobdiff_plain/8e5745a278c26c77815324a703181935e7b26dc4..b1a20beee623c83315c3ce21abc7bcce103c6efb:/struct/hash.c?ds=inline diff --git a/struct/hash.c b/struct/hash.c index d4df9b7..de0ab2b 100644 --- a/struct/hash.c +++ b/struct/hash.c @@ -56,7 +56,7 @@ void hash_create(hash_table *t, size_t n) hash_base **v; t->a = arena_global; - t->v = x_alloc(t->a, n * sizeof(hash_base *)); + X_NEWV(t->v, t->a, n); t->mask = n - 1; for (v = t->v; n; v++, n--) *v = 0;