public inbox for igt-dev@lists.freedesktop.org
 help / color / mirror / Atom feed
* [igt-dev] [PATCH i-g-t] lib/igt_audio: fix uninitialized variable
@ 2019-05-23 10:49 Simon Ser
  2019-05-23 12:08 ` [igt-dev] ✓ Fi.CI.BAT: success for " Patchwork
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Simon Ser @ 2019-05-23 10:49 UTC (permalink / raw)
  To: igt-dev

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

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2019-05-24 13:52 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-05-23 10:49 [igt-dev] [PATCH i-g-t] lib/igt_audio: fix uninitialized variable Simon Ser
2019-05-23 12:08 ` [igt-dev] ✓ Fi.CI.BAT: success for " 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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox