mirror of
https://github.com/alsa-project/alsa-utils
synced 2024-11-09 17:05:41 +01:00
axfer: fix wrong calloc() item size in allocate_containers()
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
parent
cd2f779b8d
commit
74ad91245f
1 changed files with 1 additions and 1 deletions
|
@ -155,7 +155,7 @@ static int allocate_containers(struct context *ctx, unsigned int count)
|
|||
return -ENOMEM;
|
||||
ctx->cntr_count = count;
|
||||
|
||||
ctx->cntr_fds = calloc(count, sizeof(*ctx->cntrs));
|
||||
ctx->cntr_fds = calloc(count, sizeof(*ctx->cntr_fds));
|
||||
if (ctx->cntr_fds == NULL)
|
||||
return -ENOMEM;
|
||||
|
||||
|
|
Loading…
Reference in a new issue