changeset 21736:f654c3b16214

(dir_warning): Don't log a warning if Emacs hasn't finished initializing.
author Geoff Voelker <voelker@cs.washington.edu>
date Thu, 23 Apr 1998 23:40:46 +0000
parents 711a61942023
children d0b03ce6dcf5
files src/lread.c
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/lread.c	Thu Apr 23 23:40:16 1998 +0000
+++ b/src/lread.c	Thu Apr 23 23:40:46 1998 +0000
@@ -2879,7 +2879,9 @@
 
   fprintf (stderr, format, XSTRING (dirname)->data);
   sprintf (buffer, format, XSTRING (dirname)->data);
-  message_dolog (buffer, strlen (buffer), 0, STRING_MULTIBYTE (dirname));
+  /* Don't log the warning before we've initialized!! */
+  if (initialized)
+    message_dolog (buffer, strlen (buffer), 0, STRING_MULTIBYTE (dirname));
 }
 
 void