Skip to content

Commit

Permalink
Zero memory of format struct to prevent sigsegv.
Browse files Browse the repository at this point in the history
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1730 423420c4-83ab-492f-b58f-81f9feb106b5
  • Loading branch information
hean01-cendio committed Aug 14, 2013
1 parent 982fd42 commit a224721
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions rdpsnd_libao.c
Expand Up @@ -111,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;
Expand Down

0 comments on commit a224721

Please sign in to comment.