aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChenthill Palanisamy <pchen@src.gnome.org>2006-03-04 18:11:58 +0800
committerChenthill Palanisamy <pchen@src.gnome.org>2006-03-04 18:11:58 +0800
commit15f1ed069f62259f545c86d253935afd9a968ba4 (patch)
tree9b6012244b816c7a35acb03291a055329704d3a4
parentd3614dccac2294544bb24b7575b1865ecbafe72c (diff)
downloadgsoc2013-evolution-15f1ed069f62259f545c86d253935afd9a968ba4.tar.gz
gsoc2013-evolution-15f1ed069f62259f545c86d253935afd9a968ba4.tar.zst
gsoc2013-evolution-15f1ed069f62259f545c86d253935afd9a968ba4.zip
fixes #330974.
svn path=/trunk/; revision=31637
-rw-r--r--plugins/mail-to-task/ChangeLog9
-rw-r--r--plugins/mail-to-task/mail-to-task.c4
2 files changed, 11 insertions, 2 deletions
diff --git a/plugins/mail-to-task/ChangeLog b/plugins/mail-to-task/ChangeLog
index 800acff0e8..a23a678f4f 100644
--- a/plugins/mail-to-task/ChangeLog
+++ b/plugins/mail-to-task/ChangeLog
@@ -1,3 +1,12 @@
+2006-03-04 Chenthill Palanisamy <pchenthill@novell.com>
+
+ Fixes #330974
+ * mail-to-task.c:
+ (set_description): Check if the params are present,
+ before accessing the value. Fixes a crash.
+ (convert_to_task): Set the authentication function
+ while creating the ECal.
+
2006-02-01 Chenthill Palanisamy <pchenthill@novell.com>
* Makefile.am: Reverting the commit made by
diff --git a/plugins/mail-to-task/mail-to-task.c b/plugins/mail-to-task/mail-to-task.c
index 65261ccf46..7290b1a2f1 100644
--- a/plugins/mail-to-task/mail-to-task.c
+++ b/plugins/mail-to-task/mail-to-task.c
@@ -92,7 +92,7 @@ set_description (ECalComponent *comp, CamelMimeMessage *message)
camel_object_unref (mem);
/* convert to UTF-8 string */
- if (str && content->mime_type->params->value)
+ if (str && content->mime_type->params && content->mime_type->params->value)
{
convert_str = g_convert (str, strlen (str),
"UTF-8", content->mime_type->params->value,
@@ -221,7 +221,7 @@ convert_to_task (GPtrArray *uid_array, struct _CamelFolder *folder)
GThread *thread = NULL;
GError *error = NULL;
- client = e_cal_new (source, E_CAL_SOURCE_TYPE_TODO);
+ client = auth_new_cal_from_source (source, E_CAL_SOURCE_TYPE_TODO);
if (!client) {
char *uri = e_source_get_uri (source);