From d2dfbef05a2162b7b48c6ed82459c9d998f643db Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Wed, 4 Nov 2009 12:41:43 +0000 Subject: [PATCH] Change declaration and use of malloc_options to be more standard, from Tim van der Molen. --- tmux.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tmux.c b/tmux.c index 51f8dbef..ba634c6a 100644 --- a/tmux.c +++ b/tmux.c @@ -31,7 +31,7 @@ #include "tmux.h" #ifdef DEBUG -const char *malloc_options = "AFGJPX"; +extern char *malloc_options; #endif volatile sig_atomic_t sigwinch; @@ -299,6 +299,10 @@ main(int argc, char **argv) size_t len; int nfds, retcode, opt, flags, cmdflags = 0; +#ifdef DEBUG + malloc_options = (char *) "AFGJPX"; +#endif + flags = 0; shellcmd = label = path = NULL; login_shell = (**argv == '-');