Enable malloc debugging on OpenBSD when SUDO_DEVEL is set.

This commit is contained in:
Todd C. Miller
2005-11-11 22:17:59 +00:00
parent 50004e00b8
commit 69c627658f

4
sudo.c
View File

@@ -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");