mirror of
				https://gitlab.freedesktop.org/wayland/wayland.git
				synced 2025-11-03 09:01:42 -05:00 
			
		
		
		
	os-wrappers-test: assert closure is not NULL before invoking it
Signed-off-by: U. Artie Eoff <ullysses.a.eoff@intel.com>
This commit is contained in:
		
							parent
							
								
									5e096ccc94
								
							
						
					
					
						commit
						e0c58cea4e
					
				
					 1 changed files with 1 additions and 0 deletions
				
			
		| 
						 | 
					@ -252,6 +252,7 @@ marshal_demarshal(struct marshal_data *data,
 | 
				
			||||||
	object.id = msg[0];
 | 
						object.id = msg[0];
 | 
				
			||||||
	closure = wl_connection_demarshal(data->read_connection,
 | 
						closure = wl_connection_demarshal(data->read_connection,
 | 
				
			||||||
					  size, &objects, &message);
 | 
										  size, &objects, &message);
 | 
				
			||||||
 | 
						assert(closure);
 | 
				
			||||||
	wl_closure_invoke(closure, WL_CLOSURE_INVOKE_SERVER, &object, 0, data);
 | 
						wl_closure_invoke(closure, WL_CLOSURE_INVOKE_SERVER, &object, 0, data);
 | 
				
			||||||
	wl_closure_destroy(closure);
 | 
						wl_closure_destroy(closure);
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue