summaryrefslogtreecommitdiff
path: root/ui/gtk/main_welcome.c
diff options
context:
space:
mode:
Diffstat (limited to 'ui/gtk/main_welcome.c')
-rw-r--r--ui/gtk/main_welcome.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/gtk/main_welcome.c b/ui/gtk/main_welcome.c
index 696446f7b4..5debeb0fa0 100644
--- a/ui/gtk/main_welcome.c
+++ b/ui/gtk/main_welcome.c
@@ -330,7 +330,7 @@ welcome_header_set_message(gchar *msg) {
if (msg) {
g_string_append(message, msg);
} else { /* Use our default header */
- if ((now->tm_mon == 3 && now->tm_mday == 1) || (now->tm_mon == 6 && now->tm_mday == 14)) {
+ if (now != NULL && ((now->tm_mon == 3 && now->tm_mday == 1) || (now->tm_mon == 6 && now->tm_mday == 14))) {
g_string_append(message, "Sniffing the glue that holds the Internet together");
} else {
g_string_append(message, prefs.gui_start_title);