fix a couple of issues I found when compiling polypaudio with gcc 2.95

git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@754 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
Lennart Poettering 2006-04-18 19:31:50 +00:00
parent 60008cb115
commit 746adcfed5
13 changed files with 15 additions and 13 deletions

View file

@ -461,8 +461,9 @@ int pa__init(pa_core *c, pa_module*m) {
* Without this snippet, poll will never register the fd as ready.
*/
if (u->source) {
char buf[u->sample_size];
char *buf = pa_xnew(char, u->sample_size);
read(u->fd, buf, u->sample_size);
pa_xfree(buf);
}
/* Read mixer settings */