mirror of
				https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
				synced 2025-11-03 09:01:50 -05:00 
			
		
		
		
	Only declare saved_errno when it's going to be used (on Linux).
This commit is contained in:
		
							parent
							
								
									9a2ac32dcd
								
							
						
					
					
						commit
						6f44792806
					
				
					 1 changed files with 1 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -2238,10 +2238,9 @@ int pa_close_all(int except_fd, ...) {
 | 
			
		|||
int pa_close_allv(const int except_fds[]) {
 | 
			
		||||
    struct rlimit rl;
 | 
			
		||||
    int maxfd, fd;
 | 
			
		||||
    int saved_errno;
 | 
			
		||||
 | 
			
		||||
#ifdef __linux__
 | 
			
		||||
 | 
			
		||||
    int saved_errno;
 | 
			
		||||
    DIR *d;
 | 
			
		||||
 | 
			
		||||
    if ((d = opendir("/proc/self/fd"))) {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue