Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/libical/ChangeLog,v
retrieving revision 1.182
diff -u -p -u -p -r1.182 ChangeLog
--- ChangeLog	13 Dec 2005 10:27:20 -0000	1.182
+++ ChangeLog	13 Feb 2006 08:48:23 -0000
@@ -1,3 +1,9 @@
+2006-02-13  Chenthill Palanisamy  <pchenthill@novell.com>
+
+	Fixes #330215
+	* src/libical/icalrecur.c: (icalrecurrencetype_as_string): Check
+	if the week start is set before getting the value.
+
 2005-12-13  Tor Lillqvist  <tml@novell.com>
 
 	* src/test/regression-utils.c (ical_timet_string): Don't crash if
Index: src/libical/icalrecur.c
===================================================================
RCS file: /cvs/gnome/libical/src/libical/icalrecur.c,v
retrieving revision 1.14
diff -u -p -u -p -r1.14 icalrecur.c
--- src/libical/icalrecur.c	11 Aug 2005 00:00:25 -0000	1.14
+++ src/libical/icalrecur.c	13 Feb 2006 08:48:24 -0000
@@ -582,7 +582,7 @@ char* icalrecurrencetype_as_string(struc
     }
 
     /* If week start is not monday (the default per RFC2445) append WKST */
-    if (recur->week_start != ICAL_MONDAY_WEEKDAY) {
+    if (recur->week_start != ICAL_MONDAY_WEEKDAY && recur->week_start != ICAL_NO_WEEKDAY) {
 	sprintf(temp,"%s", icalrecur_weekday_to_string(recur->week_start));
 	icalmemory_append_string(&str,&str_p,&buf_sz,";WKST=");
 	icalmemory_append_string(&str,&str_p,&buf_sz, temp);
