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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



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


[Index of Archives]     [Pulseaudio]     [Linux Audio Users]     [ALSA Devel]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux