Commit 6b8c7175 authored by Milan Crha's avatar Milan Crha

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
parent 60213316
......@@ -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);
}
}
......
......@@ -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);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment