From a5c73aaa9a67136deef137c6f3b30e469ce0dd89 Mon Sep 17 00:00:00 2001 From: Chenthill Palanisamy Date: Tue, 21 Aug 2007 11:17:57 +0000 Subject: Fixes #301835 (bnc) svn path=/trunk/; revision=34053 --- plugins/itip-formatter/ChangeLog | 7 +++++++ plugins/itip-formatter/itip-formatter.c | 9 +++++---- 2 files changed, 12 insertions(+), 4 deletions(-) (limited to 'plugins/itip-formatter') diff --git a/plugins/itip-formatter/ChangeLog b/plugins/itip-formatter/ChangeLog index 5394bc2148..acff351299 100644 --- a/plugins/itip-formatter/ChangeLog +++ b/plugins/itip-formatter/ChangeLog @@ -1,3 +1,10 @@ +2007-08-21 Suman Manjunath + + ** Fix for bug #301835 (BNC) + + * itip-formatter.c: (find_from_address): + Fixed crash when no SENTBY parameter present. + 2007-08-06 Srinivasa Ragavan ** Fix for bug #460326 diff --git a/plugins/itip-formatter/itip-formatter.c b/plugins/itip-formatter/itip-formatter.c index 6e85300a3d..ab5b8a6399 100644 --- a/plugins/itip-formatter/itip-formatter.c +++ b/plugins/itip-formatter/itip-formatter.c @@ -307,11 +307,12 @@ find_from_address (FormatItipPObject *pitip, icalcomponent *ical_comp) } 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)) -- cgit v1.2.3