From 646d6ff094a82153db49af176cba3aacbde46cf6 Mon Sep 17 00:00:00 2001 From: Jaroslav Kysela Date: Fri, 4 Jun 2021 10:04:50 +0200 Subject: [PATCH] =?UTF-8?q?alsactl:=20state=20-=20fix=20=E2=80=98item?= =?UTF-8?q?=E2=80=99=20may=20be=20used=20uninitialized=20gcc=20warning?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Jaroslav Kysela --- alsactl/state.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/alsactl/state.c b/alsactl/state.c index b3a3f4d..9c75688 100644 --- a/alsactl/state.c +++ b/alsactl/state.c @@ -229,7 +229,7 @@ static int get_control(snd_ctl_t *handle, snd_ctl_elem_id_t *id, snd_config_t *t { snd_ctl_elem_value_t *ctl; snd_ctl_elem_info_t *info; - snd_config_t *control, *comment, *item, *value; + snd_config_t *control, *comment, *item = NULL, *value; const char *s; char buf[256]; unsigned int idx;