mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	tests: zero test data
hooks need to be zeroed or else they causes crashes on _remove when the remove callback is called. Fixes #368
This commit is contained in:
		
							parent
							
								
									3fe31862ef
								
							
						
					
					
						commit
						cd71b05fd0
					
				
					 1 changed files with 1 additions and 0 deletions
				
			
		| 
						 | 
					@ -382,6 +382,7 @@ static void test_endpoint(void)
 | 
				
			||||||
	uint8_t buffer[1024];
 | 
						uint8_t buffer[1024];
 | 
				
			||||||
	struct spa_pod_builder b = SPA_POD_BUILDER_INIT(buffer, 1024);
 | 
						struct spa_pod_builder b = SPA_POD_BUILDER_INIT(buffer, 1024);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						spa_zero(d);
 | 
				
			||||||
	d.loop = pw_main_loop_new(NULL);
 | 
						d.loop = pw_main_loop_new(NULL);
 | 
				
			||||||
	d.context = pw_context_new(pw_main_loop_get_loop(d.loop), NULL, 0);
 | 
						d.context = pw_context_new(pw_main_loop_get_loop(d.loop), NULL, 0);
 | 
				
			||||||
	spa_assert(d.context != NULL);
 | 
						spa_assert(d.context != NULL);
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue