mirror of
				https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
				synced 2025-10-29 05:40:23 -04:00 
			
		
		
		
	bluetooth: Fix too late assertion
u was dereferenced before the assertion that checks that u isn't NULL.
This commit is contained in:
		
							parent
							
								
									0e9baa429e
								
							
						
					
					
						commit
						e05c12f28b
					
				
					 1 changed files with 4 additions and 2 deletions
				
			
		|  | @ -2233,11 +2233,13 @@ static int add_card(struct userdata *u) { | |||
|     pa_bt_form_factor_t ff; | ||||
|     char *n; | ||||
|     const char *default_profile; | ||||
|     const pa_bluetooth_device *device = u->device; | ||||
|     const pa_bluetooth_device *device; | ||||
|     const pa_bluetooth_uuid *uuid; | ||||
| 
 | ||||
|     pa_assert(u); | ||||
|     pa_assert(device); | ||||
|     pa_assert(u->device); | ||||
| 
 | ||||
|     device = u->device; | ||||
| 
 | ||||
|     pa_card_new_data_init(&data); | ||||
|     data.driver = __FILE__; | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Tanu Kaskinen
						Tanu Kaskinen