[evolution-ews] Bug 660355 - Crash in g_list_reverse, ews_cal_get_free_busy_cb
- From: Chenthill Palanisamy <pchen src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-ews] Bug 660355 - Crash in g_list_reverse, ews_cal_get_free_busy_cb
- Date: Wed, 28 Sep 2011 12:55:20 +0000 (UTC)
commit 1ea49cd8260e8db5a509b8c4fcbbde4da4f7a405
Author: Chenthill Palanisamy <pchenthill novell com>
Date: Wed Sep 28 18:24:50 2011 +0530
Bug 660355 - Crash in g_list_reverse, ews_cal_get_free_busy_cb
src/calendar/e-cal-backend-ews.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/src/calendar/e-cal-backend-ews.c b/src/calendar/e-cal-backend-ews.c
index df2bc4a..9555ad3 100644
--- a/src/calendar/e-cal-backend-ews.c
+++ b/src/calendar/e-cal-backend-ews.c
@@ -3594,7 +3594,7 @@ ews_cal_get_free_busy_cb (GObject *obj, GAsyncResult *res, gpointer user_data)
GSList *free_busy = NULL, *j;
GError *error = NULL;
#if ! EDS_CHECK_VERSION (3,1,0)
- GList *fb;
+ GList *fb = NULL;
#endif
if (!e_ews_connection_get_free_busy_finish (cnc, res, &free_busy_sl, &error)) {
@@ -3614,7 +3614,8 @@ done:
#if ! EDS_CHECK_VERSION (3,1,0)
for (j = free_busy; j != NULL; j = g_slist_next (j))
fb = g_list_prepend (fb, j->data);
- fb = g_list_reverse (fb);
+ if (fb)
+ fb = g_list_reverse (fb);
e_data_cal_notify_free_busy (free_busy_data->cal, free_busy_data->context, error, fb);
g_list_free (fb);
#else
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]