updated for version 7.2-269
diff --git a/src/macros.h b/src/macros.h
index 68ea6bc..51e4dd4 100644
--- a/src/macros.h
+++ b/src/macros.h
@@ -243,7 +243,7 @@
 #endif
 
 #ifdef STARTUPTIME
-# define TIME_MSG(s) time_msg(s, NULL)
+# define TIME_MSG(s) { if (time_fd != NULL) time_msg(s, NULL); }
 #else
 # define TIME_MSG(s)
 #endif