[evolution/gnome-3-16] Retrieved list of Google calendars opened empty



commit 6b8c7175461e2ce64a5e30ef71d0f5e59de1f303
Author: Milan Crha <mcrha redhat com>
Date:   Fri Apr 3 11:00:17 2015 +0200

    Retrieved list of Google calendars opened empty
    
    There had been used uninitialized variable, which could prevent
    correct available calendars list filling. This had been reported
    downstream at: https://bugzilla.redhat.com/show_bug.cgi?id=1203773

 modules/cal-config-caldav/e-caldav-chooser.c |    3 +--
 modules/cal-config-google/e-google-chooser.c |    3 +--
 2 files changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/modules/cal-config-caldav/e-caldav-chooser.c b/modules/cal-config-caldav/e-caldav-chooser.c
index 9cfe510..30e13e3 100644
--- a/modules/cal-config-caldav/e-caldav-chooser.c
+++ b/modules/cal-config-caldav/e-caldav-chooser.c
@@ -1798,7 +1798,6 @@ e_caldav_chooser_authenticate_thread (GTask *task,
 {
        ECaldavChooser *chooser = source_object;
        const ENamedParameters *credentials = task_data;
-       gboolean success;
        GError *local_error = NULL;
 
        if (caldav_chooser_try_password_sync (chooser, credentials, cancellable, &local_error)
@@ -1809,7 +1808,7 @@ e_caldav_chooser_authenticate_thread (GTask *task,
        if (local_error != NULL) {
                g_task_return_error (task, local_error);
        } else {
-               g_task_return_boolean (task, success);
+               g_task_return_boolean (task, TRUE);
        }
 }
 
diff --git a/modules/cal-config-google/e-google-chooser.c b/modules/cal-config-google/e-google-chooser.c
index c4d9e01..6dc90ce 100644
--- a/modules/cal-config-google/e-google-chooser.c
+++ b/modules/cal-config-google/e-google-chooser.c
@@ -1835,7 +1835,6 @@ e_google_chooser_authenticate_thread (GTask *task,
 {
        EGoogleChooser *chooser = source_object;
        const ENamedParameters *credentials = task_data;
-       gboolean success;
        GError *local_error = NULL;
 
        if (google_chooser_try_password_sync (chooser, credentials, cancellable, &local_error)
@@ -1846,7 +1845,7 @@ e_google_chooser_authenticate_thread (GTask *task,
        if (local_error != NULL) {
                g_task_return_error (task, local_error);
        } else {
-               g_task_return_boolean (task, success);
+               g_task_return_boolean (task, TRUE);
        }
 }
 


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