app: fix sigsegv when not getting a date from cli
This commit is contained in:
@@ -157,6 +157,7 @@ gcal_application_activate (GApplication *application)
|
|||||||
{
|
{
|
||||||
if (priv->initial_date == NULL)
|
if (priv->initial_date == NULL)
|
||||||
{
|
{
|
||||||
|
priv->initial_date = g_new0 (icaltimetype, 1);
|
||||||
/* FIXME: here read the initial date from somewehere */
|
/* 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_current_time_with_zone (gcal_manager_get_system_timezone (priv->manager));
|
||||||
*(priv->initial_date) = icaltime_set_timezone (priv->initial_date,
|
*(priv->initial_date) = icaltime_set_timezone (priv->initial_date,
|
||||||
|
|||||||
Reference in New Issue
Block a user