diff options
author | Simon Wilson <simonwilson@google.com> | 2011-06-07 16:12:32 -0700 |
---|---|---|
committer | Simon Wilson <simonwilson@google.com> | 2011-06-07 16:14:21 -0700 |
commit | 98c1f16cbd8fd2e94a6be0db492b378d34a29310 (patch) | |
tree | 05b0eb2a0c1dfabe875aacca853d28a4c835d024 /pcm.c | |
parent | b9d4f6bfee008efe1c38eea80fdabf1886c26cf0 (diff) |
Fix error cases and some spurious whitespace
Diffstat (limited to 'pcm.c')
-rw-r--r-- | pcm.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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++) { |