changeset 22323:4c3c4ae02b77

(main): Test `initialized' before clearing *Messages*.
author Karl Heuer <kwzh@gnu.org>
date Mon, 01 Jun 1998 21:08:28 +0000
parents 7fd705a45589
children 0c5b61cb97c0
files src/emacs.c
diffstat 1 files changed, 8 insertions(+), 5 deletions(-) [+]
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)