aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/e-cal-popup.c
diff options
context:
space:
mode:
Diffstat (limited to 'calendar/gui/e-cal-popup.c')
-rw-r--r--calendar/gui/e-cal-popup.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/calendar/gui/e-cal-popup.c b/calendar/gui/e-cal-popup.c
index 89cae6de73..c4cc57ee9c 100644
--- a/calendar/gui/e-cal-popup.c
+++ b/calendar/gui/e-cal-popup.c
@@ -157,7 +157,8 @@ ecalp_part_popup_saveas(EPopup *ep, EPopupItem *item, void *data)
{
EPopupTarget *t = ep->target;
CamelMimePart *part = NULL;
- char *file, *filename, *mfilename = NULL;
+ char *file, *mfilename = NULL;
+ const char *filename;
part = ((EAttachment *) ((ECalPopupTargetAttachments *) t)->attachments->data)->body;
filename = camel_mime_part_get_filename (part);