about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--src/ui/window.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ui/window.c b/src/ui/window.c
index d4495099..12bf40f5 100644
--- a/src/ui/window.c
+++ b/src/ui/window.c
@@ -1423,7 +1423,7 @@ _win_print(ProfWin *window, const char show_char, int pad_indent, GDateTime *tim
     }
 
     gchar *date_fmt = NULL;
-    if (g_strcmp0(time_pref, "off") == 0) {
+    if (g_strcmp0(time_pref, "off") == 0 || time == NULL) {
         date_fmt = g_strdup("");
     } else {
         date_fmt = g_date_time_format(time, time_pref);