aboutsummaryrefslogtreecommitdiff
path: root/pcm.c
diff options
context:
space:
mode:
authorSimon Wilson <simonwilson@google.com>2011-06-07 16:12:32 -0700
committerSimon Wilson <simonwilson@google.com>2011-06-07 16:14:21 -0700
commit98c1f16cbd8fd2e94a6be0db492b378d34a29310 (patch)
tree05b0eb2a0c1dfabe875aacca853d28a4c835d024 /pcm.c
parentb9d4f6bfee008efe1c38eea80fdabf1886c26cf0 (diff)
Fix error cases and some spurious whitespace
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++) {