[gnome-todo] timer, task-model: Initialize a few variables
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-todo] timer, task-model: Initialize a few variables
- Date: Fri, 29 Mar 2019 16:11:57 +0000 (UTC)
commit 9360a46da0d04570f821d519b8fb574a950d736a
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Fri Mar 29 13:08:53 2019 -0300
timer, task-model: Initialize a few variables
src/gtd-timer.c | 2 +-
src/models/gtd-task-model.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/gtd-timer.c b/src/gtd-timer.c
index c436e7d..e027af2 100644
--- a/src/gtd-timer.c
+++ b/src/gtd-timer.c
@@ -53,7 +53,7 @@ static guint signals[N_SIGNALS] = { 0, };
static void
update_current_day (GtdTimer *self)
{
- g_autoptr (GDateTime) now;
+ g_autoptr (GDateTime) now = NULL;
now = g_date_time_new_now_local ();
diff --git a/src/models/gtd-task-model.c b/src/models/gtd-task-model.c
index b23f560..9943b7d 100644
--- a/src/models/gtd-task-model.c
+++ b/src/models/gtd-task-model.c
@@ -204,7 +204,7 @@ gtd_task_model_get_item (GListModel *model,
for (i = 0; i < g_list_model_get_n_items (tasklists); i++)
{
- g_autoptr (GtdTaskList) tasklist;
+ g_autoptr (GtdTaskList) tasklist = NULL;
guint n_items;
tasklist = g_list_model_get_item (tasklists, i);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]