# HG changeset patch # User Karl Heuer # Date 896735308 0 # Node ID 4c3c4ae02b77d4e68920885416779038e9bc71f3 # Parent 7fd705a45589179b245bf6ad03f4070d45fc9709 (main): Test `initialized' before clearing *Messages*. diff -r 7fd705a45589 -r 4c3c4ae02b77 src/emacs.c --- 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)