[gnome-calendar] app: fix sigsegv when not getting a date from cli
- From: Erick Pérez Castellanos <erickpc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-calendar] app: fix sigsegv when not getting a date from cli
- Date: Wed, 10 Dec 2014 13:49:51 +0000 (UTC)
commit 2a6b9a31ce7608b95edf10e7fb8dad32540c1b6e
Author: Erick Pérez Castellanos <erick red gmail com>
Date: Wed Dec 10 01:21:19 2014 -0500
app: fix sigsegv when not getting a date from cli
src/gcal-application.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/gcal-application.c b/src/gcal-application.c
index e0ecd4c..91e473d 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,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]