aboutsummaryrefslogtreecommitdiffstats
path: root/modules/mail/e-mail-attachment-handler.c
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2011-05-13 07:00:09 +0800
committerMatthew Barnes <mbarnes@redhat.com>2011-05-13 07:00:09 +0800
commitb663d51f1bd01979030b8dff57a2631cd672775e (patch)
tree40648b9162fb41c49ae5bf20f3bbc24b0b030bea /modules/mail/e-mail-attachment-handler.c
parent8ff0684fa2e371a80cca60e8df167cc104c473c2 (diff)
downloadgsoc2013-evolution-b663d51f1bd01979030b8dff57a2631cd672775e.tar
gsoc2013-evolution-b663d51f1bd01979030b8dff57a2631cd672775e.tar.gz
gsoc2013-evolution-b663d51f1bd01979030b8dff57a2631cd672775e.tar.bz2
gsoc2013-evolution-b663d51f1bd01979030b8dff57a2631cd672775e.tar.lz
gsoc2013-evolution-b663d51f1bd01979030b8dff57a2631cd672775e.tar.xz
gsoc2013-evolution-b663d51f1bd01979030b8dff57a2631cd672775e.tar.zst
gsoc2013-evolution-b663d51f1bd01979030b8dff57a2631cd672775e.zip
Miscellaneous cleanups.
Diffstat (limited to 'modules/mail/e-mail-attachment-handler.c')
-rw-r--r--modules/mail/e-mail-attachment-handler.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/modules/mail/e-mail-attachment-handler.c b/modules/mail/e-mail-attachment-handler.c
index befac08d30..6b2efaf1c7 100644
--- a/modules/mail/e-mail-attachment-handler.c
+++ b/modules/mail/e-mail-attachment-handler.c
@@ -323,9 +323,13 @@ mail_attachment_handler_x_uid_list (EAttachmentView *view,
/* Handle one message. */
if (uids->len == 1) {
+ const gchar *message_uid;
+
+ message_uid = g_ptr_array_index (uids, 0);
+
/* FIXME Not passing a GCancellable here. */
message = camel_folder_get_message_sync (
- folder, uids->pdata[0], NULL, &local_error);
+ folder, message_uid, NULL, &local_error);
if (message == NULL)
goto exit;