]> git.alsa-project.org Git - alsa-lib.git/commitdiff
Fix compile warnings
authorTakashi Iwai <tiwai@suse.de>
Mon, 5 Sep 2005 15:57:31 +0000 (15:57 +0000)
committerTakashi Iwai <tiwai@suse.de>
Mon, 5 Sep 2005 15:57:31 +0000 (15:57 +0000)
Fix compile warnings regarding uninitialized variable.

src/pcm/pcm.c

index 8fe02cd558f32fa7a35d296ac6be3fc9f87ea223..776665e29f001ba22c1425e3c1f299943a53fccf 100644 (file)
@@ -2239,6 +2239,7 @@ int snd_pcm_wait_nocheck(snd_pcm_t *pcm, int timeout)
                return -EIO;
        }
        do {
+               pollio = 0;
                err_poll = poll(pfd, npfds, timeout);
                if (err_poll < 0) {
                        if (errno == EINTR)
@@ -2250,7 +2251,6 @@ int snd_pcm_wait_nocheck(snd_pcm_t *pcm, int timeout)
                err = snd_pcm_poll_descriptors_revents(pcm, pfd, npfds, revents);
                if (err < 0)
                        return err;
-               pollio = 0;
                for (i = 0; i < npfds; i++) {
                        if (revents[i] & (POLLERR | POLLNVAL)) {
                                /* check more precisely */