From: Todd C. Miller Date: Fri, 11 Nov 2005 22:17:59 +0000 (+0000) Subject: Enable malloc debugging on OpenBSD when SUDO_DEVEL is set. X-Git-Tag: SUDO_1_7_0~612 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=69c627658f87dad300bd6e5fe3b265dc2bc147cc;p=sudo Enable malloc debugging on OpenBSD when SUDO_DEVEL is set. --- 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");