Re: [PATCH] selftests/alsa:Replace malloc with calloc

From: Mark Brown
Date: Wed Jun 26 2024 - 06:42:38 EST


On Wed, Jun 26, 2024 at 02:54:09AM -0700, Zhu Jun wrote:
> Using calloc to handling memory allocation, calloc
> can initialize the allocated memory

> SKIP(return, "Can't read patterns. Probably, module isn't loaded");
>
> card_name = malloc(127);
> + memset(card_name, 0, 127);
> ASSERT_NE(card_name, NULL);
> self->params.buffer_size = 16384;
> self->params.period_size = 4096;

The change does not match the changelog.

Attachment: signature.asc
Description: PGP signature