[evolution-patches] patch for #60296 Calendar
- From: Sivaiah N <snallagatla novell com>
- To: evolution-patches ximian com
- Subject: [evolution-patches] patch for #60296 Calendar
- Date: Thu, 01 Jul 2004 21:33:38 +0530
Hi,
Attached small patch fixes a crash happening when a groupwise task is
marked as completed . Crash is due to trying to use an uninitialized
variable.
Thanks,
Siva
Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/evolution-data-server/calendar/ChangeLog,v
retrieving revision 1.292
diff -u -r1.292 ChangeLog
--- ChangeLog 15 Jun 2004 15:59:07 -0000 1.292
+++ ChangeLog 1 Jul 2004 16:05:18 -0000
@@ -1,3 +1,10 @@
+2004-07-01 Sivaiah Nallagatla <snallagatla novell com>
+
+ * backends/groupwise/e-cal-backend-groupwise-utils.c
+ (set_properties_from_cal_component) : initialize cal_orgainzer
+ before passing it to e_cal_component_get_organizer.
+
+
2004-06-15 Harish Krishnaswamy <kharish novell com>
Fixes #59352
Index: backends/groupwise/e-cal-backend-groupwise-utils.c
===================================================================
RCS file: /cvs/gnome/evolution-data-server/calendar/backends/groupwise/e-cal-backend-groupwise-utils.c,v
retrieving revision 1.22
diff -u -r1.22 e-cal-backend-groupwise-utils.c
--- backends/groupwise/e-cal-backend-groupwise-utils.c 15 Jun 2004 15:59:07 -0000 1.22
+++ backends/groupwise/e-cal-backend-groupwise-utils.c 1 Jul 2004 16:05:18 -0000
@@ -268,14 +268,17 @@
if (e_cal_component_has_organizer (comp)) {
ECalComponentOrganizer *cal_organizer;
EGwItemOrganizer *organizer = NULL;
-
+
+ cal_organizer = g_new0 (ECalComponentOrganizer, 1);
e_cal_component_get_organizer (comp, cal_organizer);
if (cal_organizer) {
organizer = g_new0 (EGwItemOrganizer, 1);
organizer->display_name = g_strdup (cal_organizer->cn);
organizer->email = g_strdup (cal_organizer->value + 7);
e_gw_item_set_organizer (item, organizer);
+ g_free (cal_organizer);
}
+
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]