diff options
Diffstat (limited to 'src')
-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); } |