mirror of
git://github.com/lxc/lxc
synced 2025-08-30 23:59:37 +00:00
cgroups: s/calloc/zalloc/g
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
This commit is contained in:
@@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user