[gnome-todo] build: fix clang errors



commit c835033d7fb4f4485d18652a2e2105429b9a12e7
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date:   Mon Aug 10 18:50:56 2015 -0300

    build: fix clang errors
    
    As pointed out by Ting-Wei Lan.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=753119

 src/gtd-application.c |    4 ++--
 src/gtd-task.c        |    1 +
 2 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/src/gtd-application.c b/src/gtd-application.c
index 0ce96a0..e3d2de9 100644
--- a/src/gtd-application.c
+++ b/src/gtd-application.c
@@ -87,12 +87,12 @@ gtd_application_show_about (GSimpleAction *simple,
 
   if (g_date_time_get_year (date) == created_year)
     {
-      copyright = g_strdup_printf (_("Copyright \xC2\xA9 %Id "
+      copyright = g_strdup_printf (_("Copyright \xC2\xA9 %d "
                                      "The To Do authors"), created_year);
     }
   else
     {
-      copyright = g_strdup_printf (_("Copyright \xC2\xA9 %Id\xE2\x80\x93%Id "
+      copyright = g_strdup_printf (_("Copyright \xC2\xA9 %d\xE2\x80\x93%d "
                                      "The To Do authors"), created_year, g_date_time_get_year (date));
     }
 
diff --git a/src/gtd-task.c b/src/gtd-task.c
index 3019bee..f0f2808 100644
--- a/src/gtd-task.c
+++ b/src/gtd-task.c
@@ -608,6 +608,7 @@ gtd_task_set_due_date (GtdTask   *task,
 
       comp_dt.value = NULL;
       comp_dt.tzid = NULL;
+      idt = NULL;
 
       if (!current_dt ||
           (current_dt &&


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]