]> granicus.if.org Git - sudo/commitdiff
Enable malloc debugging on OpenBSD when SUDO_DEVEL is set.
authorTodd C. Miller <Todd.Miller@courtesan.com>
Fri, 11 Nov 2005 22:17:59 +0000 (22:17 +0000)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Fri, 11 Nov 2005 22:17:59 +0000 (22:17 +0000)
sudo.c

diff --git a/sudo.c b/sudo.c
index 6b9fa36539664e487be9a1f8fa9c02e438dad4a0..4206f4a6168c5facd9c58199fcd7bb370c148da0 100644 (file)
--- 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");