[polypaudio-commits] r818 - /trunk/src/modules/alsa-util.c

svnmailer-noreply at 0pointer.de svnmailer-noreply at 0pointer.de
Fri Apr 28 00:28:49 PDT 2006


Author: ossman
Date: Fri Apr 28 09:28:48 2006
New Revision: 818

URL: http://0pointer.de/cgi-bin/viewcvs.cgi?rev=818&root=polypaudio&view=rev
Log:
Zero the fd list since we do a memcmp on it later.

Modified:
    trunk/src/modules/alsa-util.c

Modified: trunk/src/modules/alsa-util.c
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/trunk/src/modules/alsa-util.c?rev=818&root=polypaudio&r1=817&r2=818&view=diff
==============================================================================
--- trunk/src/modules/alsa-util.c (original)
+++ trunk/src/modules/alsa-util.c Fri Apr 28 09:28:48 2006
@@ -122,7 +122,7 @@
             pa_xfree(fdl->fds);
         if (fdl->work_fds)
             pa_xfree(fdl->work_fds);
-        fdl->fds = pa_xmalloc(sizeof(struct pollfd) * num_fds);
+        fdl->fds = pa_xmalloc0(sizeof(struct pollfd) * num_fds);
         fdl->work_fds = pa_xmalloc(sizeof(struct pollfd) * num_fds);
     }
 




More information about the pulseaudio-commits mailing list