mirror of
				https://gitlab.freedesktop.org/wayland/wayland.git
				synced 2025-11-03 09:01:42 -05:00 
			
		
		
		
	add_shm_format: check wl_array_add return value before deref
In wl_display_add_shm_format(), check the return value from wl_array_add() before dereferencing it and assigning it a value. Return the resulting pointer back to the caller. Signed-off-by: U. Artie Eoff <ullysses.a.eoff@intel.com>
This commit is contained in:
		
							parent
							
								
									02952d040c
								
							
						
					
					
						commit
						32b2baaf51
					
				
					 2 changed files with 11 additions and 5 deletions
				
			
		| 
						 | 
				
			
			@ -439,7 +439,7 @@ wl_shm_buffer_get_height(struct wl_shm_buffer *buffer);
 | 
			
		|||
int
 | 
			
		||||
wl_display_init_shm(struct wl_display *display);
 | 
			
		||||
 | 
			
		||||
void
 | 
			
		||||
uint32_t *
 | 
			
		||||
wl_display_add_shm_format(struct wl_display *display, uint32_t format);
 | 
			
		||||
 | 
			
		||||
struct wl_shm_buffer *
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue