mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 00:56:10 +00:00 
			
		
		
		
	Change declaration and use of malloc_options to be more standard, from Tim van
der Molen.
This commit is contained in:
		
							
								
								
									
										6
									
								
								tmux.c
									
									
									
									
									
								
							
							
						
						
									
										6
									
								
								tmux.c
									
									
									
									
									
								
							@@ -31,7 +31,7 @@
 | 
				
			|||||||
#include "tmux.h"
 | 
					#include "tmux.h"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#ifdef DEBUG
 | 
					#ifdef DEBUG
 | 
				
			||||||
const char	*malloc_options = "AFGJPX";
 | 
					extern char	*malloc_options;
 | 
				
			||||||
#endif
 | 
					#endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
volatile sig_atomic_t sigwinch;
 | 
					volatile sig_atomic_t sigwinch;
 | 
				
			||||||
@@ -299,6 +299,10 @@ main(int argc, char **argv)
 | 
				
			|||||||
	size_t			 len;
 | 
						size_t			 len;
 | 
				
			||||||
	int	 		 nfds, retcode, opt, flags, cmdflags = 0;
 | 
						int	 		 nfds, retcode, opt, flags, cmdflags = 0;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#ifdef DEBUG
 | 
				
			||||||
 | 
						malloc_options = (char *) "AFGJPX";
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	flags = 0;
 | 
						flags = 0;
 | 
				
			||||||
	shellcmd = label = path = NULL;
 | 
						shellcmd = label = path = NULL;
 | 
				
			||||||
	login_shell = (**argv == '-');
 | 
						login_shell = (**argv == '-');
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user