[Mplayer-cvslog] CVS: main/libao2 ao_nas.c,1.4,1.5

pl pl at mplayerhq.hu
Sat May 18 11:16:01 CEST 2002


Update of /cvsroot/mplayer/main/libao2
In directory mail:/var/tmp.root/cvs-serv7898

Modified Files:
	ao_nas.c 
Log Message:
Patch by Tobias Diedrich <td at informatik.uni-hannover.de>:
 - fix segfault due to unitialized struct in ao_nas


Index: ao_nas.c
===================================================================
RCS file: /cvsroot/mplayer/main/libao2/ao_nas.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- ao_nas.c	22 Apr 2002 22:33:06 -0000	1.4
+++ ao_nas.c	18 May 2002 09:15:49 -0000	1.5
@@ -320,6 +320,7 @@
 	char *server;
 
 	nas_data=malloc(sizeof(struct ao_nas_data));
+	memset(nas_data, 0, sizeof(struct ao_nas_data));
 
 	printf("ao2: %d Hz  %d chans  %s\n",rate,channels,
 		audio_out_format_name(format));




More information about the MPlayer-cvslog mailing list