mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 00:56:10 +00:00 
			
		
		
		
	Handle empty options correctly.
This commit is contained in:
		@@ -427,6 +427,8 @@ options_match(const char *s, int *idx, int* ambiguous)
 | 
				
			|||||||
	size_t					 namelen;
 | 
						size_t					 namelen;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	name = options_parse(s, idx);
 | 
						name = options_parse(s, idx);
 | 
				
			||||||
 | 
						if (name == NULL)
 | 
				
			||||||
 | 
							return (NULL);
 | 
				
			||||||
	namelen = strlen(name);
 | 
						namelen = strlen(name);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	if (*name == '@') {
 | 
						if (*name == '@') {
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user