From b7abc64e9dda5f8a353af17b0054db04eb54ac90 Mon Sep 17 00:00:00 2001 From: Punit Jain Date: Mon, 13 Sep 2010 09:48:27 +0530 Subject: Bug #629132 - set_attachments: assertion failed. [mail-to-task] CRITICAL **: set_attachments: assertion `status.uris != NULL' failed Uri was actually a path. --- plugins/mail-to-task/mail-to-task.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/plugins/mail-to-task/mail-to-task.c b/plugins/mail-to-task/mail-to-task.c index b62b10f3db..86663cc3b5 100644 --- a/plugins/mail-to-task/mail-to-task.c +++ b/plugins/mail-to-task/mail-to-task.c @@ -306,7 +306,7 @@ set_attachments (ECal *client, ECalComponent *comp, CamelMimeMessage *message) const gchar *comp_uid = NULL; const gchar *local_store; gint ii, n_parts; - gchar *uri; + gchar *path; struct { gchar **uris; @@ -323,9 +323,10 @@ set_attachments (ECal *client, ECalComponent *comp, CamelMimeMessage *message) e_cal_component_get_uid (comp, &comp_uid); local_store = e_cal_get_local_attachment_store (client); - uri = g_build_path ("/", local_store, comp_uid, NULL); - destination = g_file_new_for_uri (uri); - g_free (uri); + path = g_build_path ("/", local_store, comp_uid, NULL); + + destination = g_file_new_for_path (path); + g_free (path); /* Create EAttachments from the MIME parts and add them to the * attachment store. */ -- cgit v1.2.3