[evolution-patches] [calendar] fix for bug#305172
- From: "Dinesh Layek" <ldinesh novell com>
- To: <evolution-patches gnome org>
- Subject: [evolution-patches] [calendar] fix for bug#305172
- Date: Mon, 26 Sep 2005 02:49:26 -0600
Attached patch fixes bug#305172(eds crashed unexpectedly).
please review.
Regards,
Dinesh Layek
Index: e-cal-component.c
===================================================================
RCS file: /cvs/gnome/evolution-data-server/calendar/libecal/e-cal-component.c,v
retrieving revision 1.18
diff -u -p -r1.18 e-cal-component.c
--- e-cal-component.c 31 Aug 2005 04:21:54 -0000 1.18
+++ e-cal-component.c 26 Sep 2005 08:05:57 -0000
@@ -2539,11 +2539,15 @@ e_cal_component_get_dtstart (ECalCompone
{
ECalComponentPrivate *priv;
+ dt->value = NULL;
+ dt->tzid = NULL;
+
g_return_if_fail (comp != NULL);
g_return_if_fail (E_IS_CAL_COMPONENT (comp));
g_return_if_fail (dt != NULL);
priv = comp->priv;
+ g_return_if_fail (priv != NULL);
g_return_if_fail (priv->icalcomp != NULL);
get_datetime (&priv->dtstart, icalproperty_get_dtstart, dt);
Index: ../ChangeLog
===================================================================
RCS file: /cvs/gnome/evolution-data-server/calendar/ChangeLog,v
retrieving revision 1.513
diff -u -p -r1.513 ChangeLog
--- ../ChangeLog 19 Sep 2005 07:22:19 -0000 1.513
+++ ../ChangeLog 26 Sep 2005 08:05:58 -0000
@@ -1,3 +1,9 @@
+2005-09-26 Dinesh Layek <ldinesh novell com>
+
+ Fixes #305172
+ * libecal/e-cal-component.c:
+ (e_cal_component_get_dtstart): Checked for NULL values
+
2005-09-12 Chenthill Palanisamy <pchenthill novell com>
Fixes #116162
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]