2
0
mirror of git://github.com/lxc/lxc synced 2025-08-31 20:07:52 +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 38db899380
commit 4bd5942f75

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);