Update of /cvsroot/alsa/alsa-kernel/core
In directory sc8-pr-cvs1:/tmp/cvs-serv21459

Modified Files:
        pcm.c 
Log Message:
- clear the status record before calling snd_pcm_status() in proc read.
  this will prevent to show bogus values when status = OPEN.



Index: pcm.c
===================================================================
RCS file: /cvsroot/alsa/alsa-kernel/core/pcm.c,v
retrieving revision 1.34
retrieving revision 1.35
diff -u -r1.34 -r1.35
--- pcm.c       23 Oct 2003 14:34:52 -0000      1.34
+++ pcm.c       24 Nov 2003 16:20:42 -0000      1.35
@@ -371,6 +371,7 @@
                snd_iprintf(buffer, "closed\n");
                return;
        }
+       memset(&status, 0, sizeof(status));
        err = snd_pcm_status(substream, &status);
        if (err < 0) {
                snd_iprintf(buffer, "error %d\n", err);



-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
_______________________________________________
Alsa-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-cvslog

Reply via email to