CVS: rdesktop rdpsnd_oss.c,1.13,1.14

Michael Gernoth <[email protected]>
Newsgroups gmane.network.rdesktop.cvs
Message-ID <[email protected]>
Update of /cvsroot/rdesktop/rdesktop
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1810

Modified Files:
	rdpsnd_oss.c 
Log Message:
fix for uninitialized ioctl pointer.
This could be the cause for hangs with esddsp


Index: rdpsnd_oss.c
===================================================================
RCS file: /cvsroot/rdesktop/rdesktop/rdpsnd_oss.c,v
retrieving revision 1.13
retrieving revision 1.14
diff -C2 -d -r1.13 -r1.14
*** rdpsnd_oss.c	3 Oct 2004 20:19:51 -0000	1.13
--- rdpsnd_oss.c	3 Nov 2004 09:57:48 -0000	1.14
***************
*** 139,142 ****
--- 139,143 ----
  		audio_buf_info info;
  
+ 		memset(&info,0,sizeof(info));
  		if (ioctl(g_dsp_fd, SNDCTL_DSP_GETOSPACE, &info) == -1)
  		{
***************
*** 254,257 ****
--- 255,259 ----
  		if (!g_driver_broken)
  		{
+ 			memset(&info,0,sizeof(info));
  			if (ioctl(g_dsp_fd, SNDCTL_DSP_GETOSPACE, &info) == -1)
  			{



-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.