From: Geoff Voelker Date: Thu, 23 Apr 1998 23:40:46 +0000 (+0000) Subject: (dir_warning): Don't log a warning if Emacs hasn't X-Git-Tag: emacs-20.3~1340 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=9b69357efcd5ed8bd1dd7b55f164fba326bef09a;p=emacs.git (dir_warning): Don't log a warning if Emacs hasn't finished initializing. --- diff --git a/src/lread.c b/src/lread.c index 895fb6caa19..930c9deac2c 100644 --- a/src/lread.c +++ b/src/lread.c @@ -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