From 98c1f16cbd8fd2e94a6be0db492b378d34a29310 Mon Sep 17 00:00:00 2001 From: Simon Wilson Date: Tue, 7 Jun 2011 16:12:32 -0700 Subject: Fix error cases and some spurious whitespace --- pcm.c | 1 + 1 file changed, 1 insertion(+) (limited to 'pcm.c') 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++) { -- cgit v1.2.3