mirror of
				https://github.com/alsa-project/alsa-lib.git
				synced 2025-11-03 09:01:52 -05:00 
			
		
		
		
	alsa-lib: fixed coverity reported issues under "FORWARD_NULL" checker.
Coverity Static Analysis helps developers find hard-to-spot, yet potentially crash-causing defects early in the development phase, reducing the cost,time, and risk of software errors. This patch has fix for situations where variable can be NULL but not been checked beforehand Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
		
							parent
							
								
									6bb36928b1
								
							
						
					
					
						commit
						808ce5deb3
					
				
					 7 changed files with 11 additions and 5 deletions
				
			
		| 
						 | 
				
			
			@ -385,6 +385,7 @@ static int snd_pcm_hook_add_conf(snd_pcm_t *pcm, snd_config_t *root, snd_config_
 | 
			
		|||
	if (err >= 0) {
 | 
			
		||||
		if (snd_config_get_type(type) != SND_CONFIG_TYPE_COMPOUND) {
 | 
			
		||||
			SNDERR("Invalid type for PCM type %s definition", str);
 | 
			
		||||
			err = -EINVAL;
 | 
			
		||||
			goto _err;
 | 
			
		||||
		}
 | 
			
		||||
		snd_config_for_each(i, next, type) {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue