summaryrefslogtreecommitdiffstats
path: root/emulators/zsnes/files/patch-linux_audio.c
blob: a88985a34fa541282193c324f6f6bb08ffb9df8c (plain)
1
2
3
4
5
6
7
8
9
10
--- linux/audio.c.orig	2010-06-06 14:56:20.000000000 +0200
+++ linux/audio.c	2010-06-06 14:56:41.000000000 +0200
@@ -166,6 +166,7 @@ static int SoundInit_ao()
   if (driver_id < 0) { driver_id = ao_default_driver_id(); }
 
   ao_sample_format driver_format;
+  memset(&driver_format, 0, sizeof(driver_format));
   driver_format.bits = 16;
   driver_format.channels = StereoSound+1;
   driver_format.rate = freqtab[SoundQuality = ((SoundQuality > 6) ? 1 : SoundQuality)];
OpenPOWER on IntegriCloud