summaryrefslogtreecommitdiff
path: root/lib/bitset.c
diff options
context:
space:
mode:
authorAkim Demaille <akim.demaille@gmail.com>2019-09-06 11:38:48 +0200
committerAkim Demaille <akim.demaille@gmail.com>2019-09-08 08:38:49 +0200
commit03add7eb9d06ab509034ba01c904a4cb36f5706b (patch)
tree553447c02501bfcb7c117d9729190ff23e21b1e7 /lib/bitset.c
parentd3bb911fd0f53b2c69c96da43cc0f6557f3d2dd8 (diff)
downloadgnulib-03add7eb9d06ab509034ba01c904a4cb36f5706b.tar.gz
bitset: style changes
* lib/bitset/vector.c (vbitset_resize): Factor computation. * lib/bitset.c, lib/bitset/stats.c, lib/bitsetv.c: Prefer xzalloc to xcalloc. Suggested by Paul Eggert.
Diffstat (limited to 'lib/bitset.c')
-rw-r--r--lib/bitset.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bitset.c b/lib/bitset.c
index cccb1e8347..6b983f438f 100644
--- a/lib/bitset.c
+++ b/lib/bitset.c
@@ -129,7 +129,7 @@ bitset_alloc (bitset_bindex n_bits, enum bitset_type type)
{
size_t bytes = bitset_bytes (type, n_bits);
- bitset bset = xcalloc (1, bytes);
+ bitset bset = xzalloc (bytes);
/* The cache is disabled until some elements are allocated. If we
have variable length arrays, then we may need to allocate a dummy