From 69c627658f87dad300bd6e5fe3b265dc2bc147cc Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Fri, 11 Nov 2005 22:17:59 +0000 Subject: [PATCH] Enable malloc debugging on OpenBSD when SUDO_DEVEL is set. --- sudo.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sudo.c b/sudo.c index 6b9fa3653..4206f4a61 100644 --- a/sudo.c +++ b/sudo.c @@ -154,6 +154,10 @@ main(argc, argv) sigaction_t sa; VOID *ld = NULL; extern char **environ; +#if defined(SUDO_DEVEL) && defined(__OpenBSD__) + extern char *malloc_options; + malloc_options = "AFGJPR"; +#endif #ifdef HAVE_SETLOCALE setlocale(LC_ALL, "C"); -- 2.50.1