[Spice-devel] [PATCH xf86-video-qxl] In XSpice audio, fully clear the data structure; silences valgrind warnings.
Jeremy White
jwhite at codeweavers.com
Mon Sep 15 09:26:14 PDT 2014
Signed-off-by: Jeremy White <jwhite at codeweavers.com>
---
src/spiceqxl_audio.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/spiceqxl_audio.c b/src/spiceqxl_audio.c
index 7afc089..02859ee 100644
--- a/src/spiceqxl_audio.c
+++ b/src/spiceqxl_audio.c
@@ -195,10 +195,10 @@ audio_thread_main (void *p)
struct audio_data data;
int freq = SPICE_INTERFACE_PLAYBACK_FREQ;
+ memset(&data, 0, sizeof(data));
for (i = 0; i < MAX_FIFOS; ++i)
data.fifo_fds[i] = -1;
- data.valid_bytes = data.fed = 0;
#if SPICE_INTERFACE_PLAYBACK_MAJOR > 1 || SPICE_INTERFACE_PLAYBACK_MINOR >= 3
freq = spice_server_get_best_playback_rate(&qxl->playback_sin);
#endif
--
1.7.10.4
More information about the Spice-devel
mailing list