mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 09:17:31 +00:00 
			
		
		
		
	Missing va_end, from Anton Lindqvist.
This commit is contained in:
		
							
								
								
									
										2
									
								
								log.c
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								log.c
									
									
									
									
									
								
							@@ -134,6 +134,7 @@ fatal(const char *msg, ...)
 | 
			
		||||
	if (asprintf(&fmt, "fatal: %s: %s", msg, strerror(errno)) == -1)
 | 
			
		||||
		exit(1);
 | 
			
		||||
	log_vwrite(fmt, ap);
 | 
			
		||||
	va_end(ap);
 | 
			
		||||
	exit(1);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
@@ -148,5 +149,6 @@ fatalx(const char *msg, ...)
 | 
			
		||||
	if (asprintf(&fmt, "fatal: %s", msg) == -1)
 | 
			
		||||
		exit(1);
 | 
			
		||||
	log_vwrite(fmt, ap);
 | 
			
		||||
	va_end(ap);
 | 
			
		||||
	exit(1);
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user