aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKarl Heuer <[email protected]>1998-06-01 21:08:28 +0000
committerKarl Heuer <[email protected]>1998-06-01 21:08:28 +0000
commit6524291c22d224db05de07c54f8878d5cc68513d (patch)
treed664e23e3c5188489fb61c964e154f636a9d3b00 /src
parent42d720cfa9d28ef2f53bec63fe4840f59ce31fe3 (diff)
(main): Test `initialized' before clearing *Messages*.
Diffstat (limited to 'src')
-rw-r--r--src/emacs.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/src/emacs.c b/src/emacs.c
index 0a0f73a984..3de28f12db 100644
--- a/src/emacs.c
+++ b/src/emacs.c
@@ -1009,11 +1009,14 @@ the Bugs section of the Emacs manual or the file BUGS.\n", argv[0]);
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)