mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-03 16:46:18 +00:00 
			
		
		
		
	Check the return value of strunvis against -1 not NULL.
This commit is contained in:
		@@ -173,7 +173,7 @@ tty_term_override(struct tty_term *term, const char *overrides)
 | 
			
		||||
 			if ((ptr = strchr(entstr, '=')) != NULL) {
 | 
			
		||||
				*ptr++ = '\0';
 | 
			
		||||
				val = xstrdup(ptr);
 | 
			
		||||
				if (strunvis(val, ptr) == NULL) {
 | 
			
		||||
				if (strunvis(val, ptr) == -1) {
 | 
			
		||||
					xfree(val);
 | 
			
		||||
					val = xstrdup(ptr);
 | 
			
		||||
				}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user