2
0
mirror of git://github.com/lxc/lxc synced 2025-08-31 08:09:38 +00:00

cgroups: s/calloc/zalloc/g

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
This commit is contained in:
Christian Brauner
2021-08-12 09:00:00 +02:00
parent e0f7296a6d
commit 7e80755d0c

View File

@@ -215,7 +215,7 @@ static uint32_t *lxc_cpumask(char *buf, size_t nbits)
size_t arrlen;
arrlen = BITS_TO_LONGS(nbits);
bitarr = calloc(arrlen, sizeof(uint32_t));
bitarr = zalloc(arrlen * sizeof(uint32_t));
if (!bitarr)
return ret_set_errno(NULL, ENOMEM);