From: wynnfeng Date: Sun, 29 Jan 2023 12:47:53 +0000 (+0800) Subject: hdspmixer: fix core dump X-Git-Tag: v1.2.11~5 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=8c8d6941f21ea68894ce7fd13e92b3ac9f16dc8a;p=alsa-tools.git hdspmixer: fix core dump Initialize the name pointer to NULL. Fixes: https://github.com/alsa-project/alsa-tools/pull/14 Signed-off-by: wynnfeng Signed-off-by: Jaroslav Kysela --- diff --git a/hdspmixer/src/hdspmixer.cxx b/hdspmixer/src/hdspmixer.cxx index 9c0a3c4..a33a75e 100644 --- a/hdspmixer/src/hdspmixer.cxx +++ b/hdspmixer/src/hdspmixer.cxx @@ -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;