mirror of
				https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
				synced 2025-11-03 09:01:50 -05:00 
			
		
		
		
	bluetooth: Fix using garbage memory
module-bluetooth-policy should set the allocated memory to zero, in order to handle failure cases properly.
This commit is contained in:
		
							parent
							
								
									9a5330e601
								
							
						
					
					
						commit
						76248fd8f2
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -143,7 +143,7 @@ int pa__init(pa_module *m) {
 | 
				
			||||||
        return -1;
 | 
					        return -1;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    m->userdata = u = pa_xnew(struct userdata, 1);
 | 
					    m->userdata = u = pa_xnew0(struct userdata, 1);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    u->enable_a2dp_source = TRUE;
 | 
					    u->enable_a2dp_source = TRUE;
 | 
				
			||||||
    if (pa_modargs_get_value_boolean(ma, "a2dp_source", &u->enable_a2dp_source) < 0) {
 | 
					    if (pa_modargs_get_value_boolean(ma, "a2dp_source", &u->enable_a2dp_source) < 0) {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue