diff options
author | Pierre Ossman <ossman@cendio.se> | 2006-04-28 07:28:48 +0000 |
---|---|---|
committer | Pierre Ossman <ossman@cendio.se> | 2006-04-28 07:28:48 +0000 |
commit | 53930f4455dddc44fd260b151839aef0c76ce433 (patch) | |
tree | 61cc861a04bbe2922116967bcdcebecf09cee5c6 /src/modules | |
parent | cd93661dcbe04081617d932058f472bd496ad3d2 (diff) |
Zero the fd list since we do a memcmp on it later.
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@818 fefdeb5f-60dc-0310-8127-8f9354f1896f
Diffstat (limited to 'src/modules')
-rw-r--r-- | src/modules/alsa-util.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/alsa-util.c b/src/modules/alsa-util.c index dcc0e020..8bb33c2f 100644 --- a/src/modules/alsa-util.c +++ b/src/modules/alsa-util.c @@ -122,7 +122,7 @@ static void defer_cb(pa_mainloop_api*a, PA_GCC_UNUSED pa_defer_event* e, void *u 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); } |