$OpenBSD: patch-rdpsnd_libao_c,v 1.2 2011/04/21 11:07:33 jasper Exp $ --- rdpsnd_libao.c.orig Mon Apr 18 08:21:57 2011 +++ rdpsnd_libao.c Tue Apr 19 12:25:08 2011 @@ -71,6 +71,7 @@ libao_open(void) default_driver = ao_default_driver_id(); } + memset(&format, 0, sizeof(format)); format.bits = 16; format.channels = 2; format.rate = 44100; @@ -110,6 +111,7 @@ libao_set_format(RD_WAVEFORMATEX * pwfx) { ao_sample_format format; + memset(&format, 0, sizeof(format)); format.bits = pwfx->wBitsPerSample; format.channels = pwfx->nChannels; format.rate = 44100;