mirror of
				https://github.com/subsurface/subsurface.git
				synced 2025-02-19 22:16:15 +00:00 
			
		
		
		
	Android: fix potential crash
I'm not sure about this one, as we test name at the start of the function and event->name shouldn't be NULL, but hey, we have the safe compare function, so let's use it. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
		
							parent
							
								
									f3acb0ca02
								
							
						
					
					
						commit
						7eadc8ef7e
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -341,7 +341,7 @@ struct event *get_next_event_mutable(struct event *event, const char *name)
 | 
			
		|||
	if (!name || !*name)
 | 
			
		||||
		return NULL;
 | 
			
		||||
	while (event) {
 | 
			
		||||
		if (!strcmp(event->name, name))
 | 
			
		||||
		if (same_string(event->name, name))
 | 
			
		||||
			return event;
 | 
			
		||||
		event = event->next;
 | 
			
		||||
	}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue