aboutsummaryrefslogtreecommitdiff
path: root/pcm.c
diff options
context:
space:
mode:
Diffstat (limited to 'pcm.c')
-rw-r--r--pcm.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/pcm.c b/pcm.c
index 2933dec..1fab6f4 100644
--- a/pcm.c
+++ b/pcm.c
@@ -111,6 +111,7 @@ static void param_set_int(struct snd_pcm_hw_params *p, int n, unsigned int val)
static void param_init(struct snd_pcm_hw_params *p)
{
int n;
+
memset(p, 0, sizeof(*p));
for (n = SNDRV_PCM_HW_PARAM_FIRST_MASK;
n <= SNDRV_PCM_HW_PARAM_LAST_MASK; n++) {