[evolution-patches] Patch for Bug #70161: Retrieving Exchange2003 calendar info crashes evolution-exchange-storage



Hi all;

Here's a small patch to fix a crash I'm seeing when I try to view my
Exchange calendar from Evo Connector.

Note this just fixes the "first order" bug: the crash is because some
uninitialized local variables are being used.  They are not being
initialized because another function is detecting an error condition and
returning without initializing the variables.

The patch initializes the memory, but I have no idea what the "second
order" bug is: that is what causes the error that the initializer
function sees so it doesn't initialize.  It would be good if someone
could look at my bug report and see if they have any ideas:

  http://bugzilla.ximian.com/show_bug.cgi?id=70161


Anyway, the patch keeps my calendar from crashing.


*** calendar/libecal/e-cal-recur.c.orig	Tue May 18 10:42:48 2004
--- calendar/libecal/e-cal-recur.c	Fri Dec  3 12:25:40 2004
***************
*** 665,671 ****
  					gpointer	            tz_cb_data,
  					icaltimezone	 *default_timezone)
  {
! 	ECalComponentDateTime dtstart, dtend;
  	time_t dtstart_time, dtend_time;
  	GSList *rrules = NULL, *rdates = NULL, elem;
  	GSList *exrules = NULL, *exdates = NULL;
--- 665,671 ----
  					gpointer	            tz_cb_data,
  					icaltimezone	 *default_timezone)
  {
! 	ECalComponentDateTime dtstart = {0}, dtend = {0};
  	time_t dtstart_time, dtend_time;
  	GSList *rrules = NULL, *rdates = NULL, elem;
  	GSList *exrules = NULL, *exdates = NULL;
-- 
-------------------------------------------------------------------------------
 Paul D. Smith <psmith nortelnetworks com>   HASMAT: HA Software Mthds & Tools
 "Please remain calm...I may be mad, but I am a professional." --Mad Scientist
-------------------------------------------------------------------------------
   These are my opinions---Nortel Networks takes no responsibility for them.


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