aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/emacs.c15
1 files changed, 7 insertions, 8 deletions
diff --git a/src/emacs.c b/src/emacs.c
index 8d10e17a50d..dec656e8752 100644
--- a/src/emacs.c
+++ b/src/emacs.c
@@ -707,15 +707,14 @@ main (argc, argv, envp)
707 clearerr (stdin); 707 clearerr (stdin);
708 708
709#ifndef SYSTEM_MALLOC 709#ifndef SYSTEM_MALLOC
710 if (! initialized) 710 /* Arrange to get warning messages as memory fills up. */
711 { 711 memory_warnings (0, malloc_warning);
712 /* Arrange to get warning messages as memory fills up. */
713 memory_warnings (0, malloc_warning);
714 712
715 /* Arrange to disable interrupt input while malloc and friends are 713 /* Call malloc at least once, to run the initial __malloc_hook. */
716 running. */ 714 malloc (4);
717 uninterrupt_malloc (); 715
718 } 716 /* Arrange to disable interrupt input inside malloc etc. */
717 uninterrupt_malloc ();
719#endif /* not SYSTEM_MALLOC */ 718#endif /* not SYSTEM_MALLOC */
720 719
721#ifdef MSDOS 720#ifdef MSDOS