mirror of
				https://github.com/labwc/labwc.git
				synced 2025-11-03 09:01:51 -05:00 
			
		
		
		
	query: fix crash on missing identifier/title
This commit is contained in:
		
							parent
							
								
									e7ebb48cce
								
							
						
					
					
						commit
						b6ecb1068e
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -71,13 +71,13 @@ view_matches_query(struct view *view, struct view_query *query)
 | 
			
		|||
	const char *identifier = view_get_string_prop(view, "app_id");
 | 
			
		||||
	if (match && query->identifier) {
 | 
			
		||||
		empty = false;
 | 
			
		||||
		match &= match_glob(query->identifier, identifier);
 | 
			
		||||
		match &= identifier && match_glob(query->identifier, identifier);
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	const char *title = view_get_string_prop(view, "title");
 | 
			
		||||
	if (match && query->title) {
 | 
			
		||||
		empty = false;
 | 
			
		||||
		match &= match_glob(query->title, title);
 | 
			
		||||
		match &= title && match_glob(query->title, title);
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	if (match && query->window_type >= 0) {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue