mirror of
				https://git.kernel.org/pub/scm/network/wireless/iwd.git
				synced 2025-10-31 04:57:25 +01:00 
			
		
		
		
	wired: check return of l_settings_load_from_file
Caught by static analysis
This commit is contained in:
		
							parent
							
								
									34ba0d7d4a
								
							
						
					
					
						commit
						559a4058cd
					
				| @ -133,7 +133,10 @@ struct l_settings *network_lookup_security(const char *network) | ||||
| 	l_debug("Loading %s", path); | ||||
| 
 | ||||
| 	conf = l_settings_new(); | ||||
| 	l_settings_load_from_file(conf, path); | ||||
| 	if (!l_settings_load_from_file(conf, path)) { | ||||
| 		l_settings_free(conf); | ||||
| 		conf = NULL; | ||||
| 	} | ||||
| 
 | ||||
| 	l_free(path); | ||||
| 
 | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 James Prestwood
						James Prestwood