aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/itip-formatter
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2007-11-23 17:33:14 +0800
committerMilan Crha <mcrha@src.gnome.org>2007-11-23 17:33:14 +0800
commit4f786c1511d528853f8a9ce06821ca27e160b889 (patch)
tree52f4150320f31d06ea226f31399efb06ab5554ca /plugins/itip-formatter
parent1414e25bb3ec7b81a82189a2cb233b4cb23db2dc (diff)
downloadgsoc2013-evolution-4f786c1511d528853f8a9ce06821ca27e160b889.tar
gsoc2013-evolution-4f786c1511d528853f8a9ce06821ca27e160b889.tar.gz
gsoc2013-evolution-4f786c1511d528853f8a9ce06821ca27e160b889.tar.bz2
gsoc2013-evolution-4f786c1511d528853f8a9ce06821ca27e160b889.tar.lz
gsoc2013-evolution-4f786c1511d528853f8a9ce06821ca27e160b889.tar.xz
gsoc2013-evolution-4f786c1511d528853f8a9ce06821ca27e160b889.tar.zst
gsoc2013-evolution-4f786c1511d528853f8a9ce06821ca27e160b889.zip
** Fix for bug #458237
2007-11-23 Milan Crha <mcrha@redhat.com> ** Fix for bug #458237 * itip-formatter.c: (start_calendar_server), (source_selected_cb): Check for non-NULL source before using it to prevent a crash. svn path=/trunk/; revision=34570
Diffstat (limited to 'plugins/itip-formatter')
-rw-r--r--plugins/itip-formatter/ChangeLog7
-rw-r--r--plugins/itip-formatter/itip-formatter.c4
2 files changed, 11 insertions, 0 deletions
diff --git a/plugins/itip-formatter/ChangeLog b/plugins/itip-formatter/ChangeLog
index 57857a86a6..bb4ae062d5 100644
--- a/plugins/itip-formatter/ChangeLog
+++ b/plugins/itip-formatter/ChangeLog
@@ -1,3 +1,10 @@
+2007-11-23 Milan Crha <mcrha@redhat.com>
+
+ ** Fix for bug #458237
+
+ * itip-formatter.c: (start_calendar_server), (source_selected_cb):
+ Check for non-NULL source before using it to prevent a crash.
+
2007-10-26 Kjartan Maraas <kmaraas@gnome.org>
* itip-view.c: (itip_view_get_source_list), (itip_view_get_source),
diff --git a/plugins/itip-formatter/itip-formatter.c b/plugins/itip-formatter/itip-formatter.c
index 7d7fabfe01..4dabf551a8 100644
--- a/plugins/itip-formatter/itip-formatter.c
+++ b/plugins/itip-formatter/itip-formatter.c
@@ -466,6 +466,8 @@ start_calendar_server (FormatItipPObject *pitip, ESource *source, ECalSourceType
ECal *ecal;
icaltimezone *zone = NULL;
+ g_return_val_if_fail (source != NULL, NULL);
+
ecal = g_hash_table_lookup (pitip->ecals[type], e_source_peek_uid (source));
if (ecal) {
pitip->current_ecal = ecal;
@@ -520,6 +522,8 @@ source_selected_cb (ItipView *view, ESource *source, gpointer data)
itip_view_set_buttons_sensitive (ITIP_VIEW (pitip->view), FALSE);
+ g_return_if_fail (source != NULL);
+
start_calendar_server (pitip, source, pitip->type, cal_opened_cb, pitip);
}