bu5hm4n pushed a commit to branch master.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=d9e01e851f0066301f1a8b27769a53fbb6c5c3d6

commit d9e01e851f0066301f1a8b27769a53fbb6c5c3d6
Author: Marcel Hollerbach <marcel-hollerb...@t-online.de>
Date:   Wed Dec 16 10:32:29 2015 +0100

    alsa: fix a valgrind warning
    
    Valgrind was warning about the values not initialized
---
 src/modules/mixer/lib/backends/alsa/alsa.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/modules/mixer/lib/backends/alsa/alsa.c 
b/src/modules/mixer/lib/backends/alsa/alsa.c
index dbf7c5a..bb06a2e 100644
--- a/src/modules/mixer/lib/backends/alsa/alsa.c
+++ b/src/modules/mixer/lib/backends/alsa/alsa.c
@@ -66,7 +66,7 @@ _alsa_mixer_source_changed_cb(snd_mixer_t *ctl, unsigned int 
mask EINA_UNUSED,
 static void
 _alsa_channel_volume_get(snd_mixer_elem_t *channel, int *v, Eina_Bool capture)
 {
-   long int min, max, vol;
+   long int min = 0, max = 100, vol = 0;
    int range, divide;
 
    if (capture)

-- 


Reply via email to