hdspmixer: fix core dump

Initialize the name pointer to NULL.

Fixes: https://github.com/alsa-project/alsa-tools/pull/14
Signed-off-by: wynnfeng <wynnfeng@tencent.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
wynnfeng 2023-01-29 20:47:53 +08:00 committed by Jaroslav Kysela
parent 5b9c2cb399
commit 8c8d6941f2

View file

@ -39,7 +39,7 @@ int main(int argc, char **argv)
{
HDSPMixerWindow *window;
HDSPMixerCard *hdsp_cards[3];
char *name, *shortname;
char *name = NULL, *shortname;
int card;
int cards = 0;