From 2a6b9a31ce7608b95edf10e7fb8dad32540c1b6e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Erick=20P=C3=A9rez=20Castellanos?= Date: Wed, 10 Dec 2014 01:21:19 -0500 Subject: [PATCH] app: fix sigsegv when not getting a date from cli --- src/gcal-application.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gcal-application.c b/src/gcal-application.c index e0ecd4c6..91e473d0 100644 --- a/src/gcal-application.c +++ b/src/gcal-application.c @@ -157,6 +157,7 @@ gcal_application_activate (GApplication *application) { if (priv->initial_date == NULL) { + priv->initial_date = g_new0 (icaltimetype, 1); /* FIXME: here read the initial date from somewehere */ *(priv->initial_date) = icaltime_current_time_with_zone (gcal_manager_get_system_timezone (priv->manager)); *(priv->initial_date) = icaltime_set_timezone (priv->initial_date,