From: Simon Ser <simon.ser@intel.com>
To: igt-dev@lists.freedesktop.org
Subject: [igt-dev] [PATCH i-g-t] lib/igt_audio: fix uninitialized variable
Date: Thu, 23 May 2019 13:49:08 +0300 [thread overview]
Message-ID: <20190523104908.29176-1-simon.ser@intel.com> (raw)
Seems like I'm not used to the C89 style yet, and ASan caught it but with a
completely unrelated stack trace.
Signed-off-by: Simon Ser <simon.ser@intel.com>
---
lib/igt_audio.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/lib/igt_audio.c b/lib/igt_audio.c
index 07935e660c5a..376e04ba6ed6 100644
--- a/lib/igt_audio.c
+++ b/lib/igt_audio.c
@@ -205,6 +205,7 @@ static size_t audio_signal_count_freqs(struct audio_signal *signal, int channel)
size_t n, i;
struct audio_signal_freq *freq;
+ n = 0;
for (i = 0; i < signal->freqs_count; i++) {
freq = &signal->freqs[i];
if (freq->channel < 0 || freq->channel == channel)
--
2.21.0
_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev
next reply other threads:[~2019-05-23 10:49 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-05-23 10:49 Simon Ser [this message]
2019-05-23 12:08 ` [igt-dev] ✓ Fi.CI.BAT: success for lib/igt_audio: fix uninitialized variable Patchwork
2019-05-24 12:20 ` [igt-dev] ✓ Fi.CI.IGT: " Patchwork
2019-05-24 13:52 ` [igt-dev] [PATCH i-g-t] " Arkadiusz Hiler
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=20190523104908.29176-1-simon.ser@intel.com \
--to=simon.ser@intel.com \
--cc=igt-dev@lists.freedesktop.org \
/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