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
- References:
- [PATCH] selftests/alsa:Replace malloc with calloc
- From: Zhu Jun
- [PATCH] selftests/alsa:Replace malloc with calloc
- Prev by Date: [PATCH] selftests/alsa:Add memset to initialize memory
- Next by Date: Re: [PATCH] selftests/alsa:Add memset to initialize memory
- Previous by thread: [PATCH] selftests/alsa:Replace malloc with calloc
- Next by thread: [PATCH] selftests/alsa:Add memset to initialize memory
- Index(es):