diff src/emacs.c @ 22323:4c3c4ae02b77

(main): Test `initialized' before clearing *Messages*.
author Karl Heuer <kwzh@gnu.org>
date Mon, 01 Jun 1998 21:08:28 +0000
parents c452f82d8d45
children cf18f0d82138
line wrap: on
line diff
--- a/src/emacs.c	Mon Jun 01 21:07:32 1998 +0000
+++ b/src/emacs.c	Mon Jun 01 21:08:28 1998 +0000
@@ -1009,11 +1009,14 @@
 	  symbol = intern ("default-enable-multibyte-characters");
 	  Fset (symbol, Qnil);
 
-	  /* Erase pre-dump messages in *Messages* now so no abort.  */
-	  old_log_max = Vmessage_log_max;
-	  XSETFASTINT (Vmessage_log_max, 0);
-	  message_dolog ("", 0, 1, 0);
-	  Vmessage_log_max = old_log_max;
+	  if (initialized)
+	    {
+	      /* Erase pre-dump messages in *Messages* now so no abort.  */
+	      old_log_max = Vmessage_log_max;
+	      XSETFASTINT (Vmessage_log_max, 0);
+	      message_dolog ("", 0, 1, 0);
+	      Vmessage_log_max = old_log_max;
+	    }
 
 	  for (tail = Vbuffer_alist; CONSP (tail);
 	       tail = XCONS (tail)->cdr)