mirror of
				https://github.com/alsa-project/alsa-lib.git
				synced 2025-11-03 09:01:52 -05:00 
			
		
		
		
	Fix compile warnings
Fix compile warnings regarding uninitialized variable.
This commit is contained in:
		
							parent
							
								
									0eac0a983a
								
							
						
					
					
						commit
						4272742a2b
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -2239,6 +2239,7 @@ int snd_pcm_wait_nocheck(snd_pcm_t *pcm, int timeout)
 | 
				
			||||||
		return -EIO;
 | 
							return -EIO;
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
	do {
 | 
						do {
 | 
				
			||||||
 | 
							pollio = 0;
 | 
				
			||||||
		err_poll = poll(pfd, npfds, timeout);
 | 
							err_poll = poll(pfd, npfds, timeout);
 | 
				
			||||||
		if (err_poll < 0) {
 | 
							if (err_poll < 0) {
 | 
				
			||||||
		        if (errno == EINTR)
 | 
							        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);
 | 
							err = snd_pcm_poll_descriptors_revents(pcm, pfd, npfds, revents);
 | 
				
			||||||
		if (err < 0)
 | 
							if (err < 0)
 | 
				
			||||||
			return err;
 | 
								return err;
 | 
				
			||||||
		pollio = 0;
 | 
					 | 
				
			||||||
		for (i = 0; i < npfds; i++) {
 | 
							for (i = 0; i < npfds; i++) {
 | 
				
			||||||
			if (revents[i] & (POLLERR | POLLNVAL)) {
 | 
								if (revents[i] & (POLLERR | POLLNVAL)) {
 | 
				
			||||||
				/* check more precisely */
 | 
									/* check more precisely */
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue