From 9b69357efcd5ed8bd1dd7b55f164fba326bef09a Mon Sep 17 00:00:00 2001 From: Geoff Voelker Date: Thu, 23 Apr 1998 23:40:46 +0000 Subject: [PATCH] (dir_warning): Don't log a warning if Emacs hasn't finished initializing. --- src/lread.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 -- 2.39.2