From: Sander Jansen Date: Mon, 25 Feb 2013 16:41:40 +0000 (-0600) Subject: snd_mixer_poll_descriptors_revents should loop over pollfd X-Git-Tag: v1.0.27~10 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=28493d9d693b1387ed38a849b2d256b34baba2b4;p=alsa-lib.git snd_mixer_poll_descriptors_revents should loop over pollfd Signed-off-by: Sander Jansen Signed-off-by: Takashi Iwai --- diff --git a/src/mixer/mixer.c b/src/mixer/mixer.c index 85d843fc..8deceacd 100644 --- a/src/mixer/mixer.c +++ b/src/mixer/mixer.c @@ -743,7 +743,7 @@ int snd_mixer_poll_descriptors_revents(snd_mixer_t *mixer, struct pollfd *pfds, if (nfds == 0) return -EINVAL; res = 0; - for (idx = 0; idx < nfds; idx++) + for (idx = 0; idx < nfds; idx++, pfds++) res |= pfds->revents & (POLLIN|POLLERR|POLLNVAL); *revents = res; return 0;