From 8af38d27cff4eb39652c0b16af80fbbec507fb8f Mon Sep 17 00:00:00 2001 From: JP Rosevear Date: Fri, 27 Jul 2001 01:31:19 +0000 Subject: send the empty string as subject if there is no summary 2001-07-26 JP Rosevear * gui/itip-utils.c (itip_send_comp): send the empty string as subject if there is no summary svn path=/trunk/; revision=11441 --- calendar/gui/itip-utils.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'calendar/gui') diff --git a/calendar/gui/itip-utils.c b/calendar/gui/itip-utils.c index 9a126446ea..57212106c6 100644 --- a/calendar/gui/itip-utils.c +++ b/calendar/gui/itip-utils.c @@ -251,7 +251,10 @@ itip_send_comp (CalComponentItipMethod method, CalComponent *comp) bcc_list->_maximum = bcc_list->_length = 0; cal_component_get_summary (comp, &caltext); - subject = CORBA_string_dup (caltext.value); + if (caltext.value != NULL) + subject = CORBA_string_dup (caltext.value); + else + subject = CORBA_string_dup (""); GNOME_Evolution_Composer_setHeaders (composer_server, to_list, cc_list, bcc_list, subject, &ev); if (ev._major != CORBA_NO_EXCEPTION) { -- cgit