evolution/bnc-301835-itip-formatter-no-organizer-sentby.patch

29 lines
1009 B
Diff

2007-08-21 Suman Manjunath <msuman@novell.com>
** Fix for bug #301835 (BNC)
* itip-formatter.c: (find_from_address):
Fixed crash when no SENTBY parameter present.
Index: evolution/plugins/itip-formatter.c
===================================================================
--- evolution/plugins/itip-formatter/itip-formatter.c (revision 34049)
+++ evolution/plugins/itip-formatter/itip-formatter.c (working copy)
@@ -307,11 +307,12 @@
}
param = icalproperty_get_first_parameter (prop, ICAL_SENTBY_PARAMETER);
- if (param)
+ if (param) {
organizer_sentby = icalparameter_get_sentby (param);
- if (organizer_sentby) {
- organizer_sentby_clean = g_strdup (itip_strip_mailto (organizer_sentby));
- organizer_sentby_clean = g_strstrip (organizer_sentby_clean);
+ if (organizer_sentby) {
+ organizer_sentby_clean = g_strdup (itip_strip_mailto (organizer_sentby));
+ organizer_sentby_clean = g_strstrip (organizer_sentby_clean);
+ }
}
if (!(organizer_sentby_clean || organizer_clean))