summaryrefslogtreecommitdiffstats
path: root/plugins/alsa/alsa-api-pcm.c
diff options
context:
space:
mode:
authorJonathan Aillet <jonathan.aillet@iot.bzh>2018-06-11 12:48:58 +0200
committerJonathan Aillet <jonathan.aillet@iot.bzh>2018-06-11 12:48:58 +0200
commitaf967e17050d813aaf209a4c6197775d3b92bcfb (patch)
tree78b4e25199c0f34c2f314a521f3aaa2cd3fa9502 /plugins/alsa/alsa-api-pcm.c
parent2c4fb97953c0c97f5a01c592b7df6aec2c563c2b (diff)
Remove yocto compilation errors
Remove yocto compilation errors concerning : - An unitialized variable in 'alsa-api-pcm.c' - A wrong use of asprintf in 'alsa-api-streams.c' Change-Id: I170993d060a7a1d1a1c20979da0645c5ef2b1b91 Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
Diffstat (limited to 'plugins/alsa/alsa-api-pcm.c')
-rw-r--r--plugins/alsa/alsa-api-pcm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/alsa/alsa-api-pcm.c b/plugins/alsa/alsa-api-pcm.c
index 6560271..084b54b 100644
--- a/plugins/alsa/alsa-api-pcm.c
+++ b/plugins/alsa/alsa-api-pcm.c
@@ -152,7 +152,7 @@ OnErrorExit:
STATIC int PcmSetControl(SoftMixerT *mixer, AlsaSndCtlT *sndcard, AlsaSndControlT *control, volumeT volType, int *newvol, int *oldval) {
snd_ctl_elem_id_t* elemId = NULL;
snd_ctl_elem_info_t *elemInfo;
- int error, value;
+ int error, value = 0;
long curval;
assert(control->numid);