Enable malloc debugging on OpenBSD when SUDO_DEVEL is set.
This commit is contained in:
4
sudo.c
4
sudo.c
@@ -154,6 +154,10 @@ main(argc, argv)
|
|||||||
sigaction_t sa;
|
sigaction_t sa;
|
||||||
VOID *ld = NULL;
|
VOID *ld = NULL;
|
||||||
extern char **environ;
|
extern char **environ;
|
||||||
|
#if defined(SUDO_DEVEL) && defined(__OpenBSD__)
|
||||||
|
extern char *malloc_options;
|
||||||
|
malloc_options = "AFGJPR";
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef HAVE_SETLOCALE
|
#ifdef HAVE_SETLOCALE
|
||||||
setlocale(LC_ALL, "C");
|
setlocale(LC_ALL, "C");
|
||||||
|
Reference in New Issue
Block a user