]> git.eshelyaron.com Git - emacs.git/commitdiff
(dir_warning): Don't log a warning if Emacs hasn't
authorGeoff Voelker <voelker@cs.washington.edu>
Thu, 23 Apr 1998 23:40:46 +0000 (23:40 +0000)
committerGeoff Voelker <voelker@cs.washington.edu>
Thu, 23 Apr 1998 23:40:46 +0000 (23:40 +0000)
finished initializing.

src/lread.c

index 895fb6caa19e4005e0856fcee967959e4a110a03..930c9deac2c16777eb37c5af94ca262ffc57e313 100644 (file)
@@ -2879,7 +2879,9 @@ dir_warning (format, dirname)
 
   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