# HG changeset patch
# User pl
# Date 1021713349 0
# Node ID 34d5c9a67b9485b5c39d972df8f907db44ce4916
# Parent 5e0c8feca2e0630c35f6fb2f06d23419e7aafc5f
Patch by Tobias Diedrich
:
- fix segfault due to unitialized struct in ao_nas
diff -r 5e0c8feca2e0 -r 34d5c9a67b94 libao2/ao_nas.c
--- a/libao2/ao_nas.c Sat May 18 04:33:05 2002 +0000
+++ b/libao2/ao_nas.c Sat May 18 09:15:49 2002 +0000
@@ -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));
|