summaryrefslogtreecommitdiffstats
path: root/plugins/alsa/alsa-api-mixer.c
diff options
context:
space:
mode:
authorThierry Bultel <thierry.bultel@iot.bzh>2018-06-04 15:24:37 +0200
committerThierry Bultel <thierry.bultel@iot.bzh>2018-06-04 15:24:37 +0200
commit4b4af4ea59d9fc9f489defffd94e9141098b0bf1 (patch)
tree0d893754ff7db90e74833a18cd97f0b269c2e791 /plugins/alsa/alsa-api-mixer.c
parente5aff5427335422ba8c8487e880e150d15d0cb0b (diff)
Fixed compilation issues with gcc >= 7.2
Fixed some warnings about uninitialized variables
Diffstat (limited to 'plugins/alsa/alsa-api-mixer.c')
-rw-r--r--plugins/alsa/alsa-api-mixer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/alsa/alsa-api-mixer.c b/plugins/alsa/alsa-api-mixer.c
index 300dd6a..d37497a 100644
--- a/plugins/alsa/alsa-api-mixer.c
+++ b/plugins/alsa/alsa-api-mixer.c
@@ -29,7 +29,7 @@ static void MixerRemoveVerb(AFB_ReqT request) {
SoftMixerT *mixer = (SoftMixerT*) afb_request_get_vcbdata(request);
int error;
- for (int idx; mixer->streams[idx]->uid; idx++) {
+ for (int idx = 0; mixer->streams[idx]->uid; idx++) {
AlsaStreamAudioT *stream = mixer->streams[idx];
AFB_ApiNotice(mixer->api, "cleaning mixer=%s stream=%s", mixer->uid, stream->uid);