From: Takashi Iwai <tiwai@suse.de>
To: Jaroslav Kysela <perex@perex.cz>
Cc: ALSA development <alsa-devel@alsa-project.org>
Subject: Re: [PATCH] alsa: control_led - fix initialization in the mode show callback
Date: Mon, 14 Jun 2021 09:52:01 +0200 [thread overview]
Message-ID: <s5hlf7c51em.wl-tiwai@suse.de> (raw)
In-Reply-To: <20210614071710.1786866-1-perex@perex.cz>
On Mon, 14 Jun 2021 09:17:10 +0200,
Jaroslav Kysela wrote:
>
> The str variable should be always initialized before use even if
> the switch covers all cases. This is a minimalistic fix: Assign NULL,
> the sprintf() may print '(null)' if something is corrupted.
>
> Signed-off-by: Jaroslav Kysela <perex@perex.cz>
Thanks, applied.
Takashi
prev parent reply other threads:[~2021-06-14 7:53 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-06-14 7:17 [PATCH] alsa: control_led - fix initialization in the mode show callback Jaroslav Kysela
2021-06-14 7:52 ` Takashi Iwai [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=s5hlf7c51em.wl-tiwai@suse.de \
--to=tiwai@suse.de \
--cc=alsa-devel@alsa-project.org \
--cc=perex@perex.cz \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).