mirror of
				https://github.com/alsa-project/alsa-lib.git
				synced 2025-11-03 09:01:52 -05:00 
			
		
		
		
	Fixed small bug in open()...
This commit is contained in:
		
							parent
							
								
									fbd6ad14bf
								
							
						
					
					
						commit
						ea5cdff6f5
					
				
					 4 changed files with 14 additions and 6 deletions
				
			
		| 
						 | 
				
			
			@ -50,8 +50,10 @@ int snd_ctl_open( void **handle, int card )
 | 
			
		|||
    close( fd );
 | 
			
		||||
    return -errno;
 | 
			
		||||
  }
 | 
			
		||||
  if ( SND_PROTOCOL_UNCOMPATIBLE( ver, SND_CTL_VERSION_MAX ) )
 | 
			
		||||
  if ( SND_PROTOCOL_UNCOMPATIBLE( ver, SND_CTL_VERSION_MAX ) ) {
 | 
			
		||||
    close( fd );
 | 
			
		||||
    return -SND_ERROR_UNCOMPATIBLE_VERSION;
 | 
			
		||||
  }
 | 
			
		||||
  ctl = (snd_ctl_t *)calloc( 1, sizeof( snd_ctl_t ) );
 | 
			
		||||
  if ( ctl == NULL ) {
 | 
			
		||||
    close( fd );
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue