diff options
author | Milan Crha <mcrha@src.gnome.org> | 2007-08-16 18:51:06 +0800 |
---|---|---|
committer | Milan Crha <mcrha@src.gnome.org> | 2007-08-16 18:51:06 +0800 |
commit | ca5d6d6a338fbe5d8e6b24b85f681b9df07ce392 (patch) | |
tree | 45fb3d086d27a695be5eff6ae9f7a8d47d23fd7b /calendar/gui | |
parent | 6ee27498e11e532a971cbb10659d754a7c2a577d (diff) | |
download | gsoc2013-evolution-ca5d6d6a338fbe5d8e6b24b85f681b9df07ce392.tar.gz gsoc2013-evolution-ca5d6d6a338fbe5d8e6b24b85f681b9df07ce392.tar.zst gsoc2013-evolution-ca5d6d6a338fbe5d8e6b24b85f681b9df07ce392.zip |
2007-08-16 mcrha Part of fix for bug #350539
svn path=/trunk/; revision=34017
Diffstat (limited to 'calendar/gui')
-rw-r--r-- | calendar/gui/e-cal-popup.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/calendar/gui/e-cal-popup.c b/calendar/gui/e-cal-popup.c index a5e4a0ed4a..f6ce2efe5f 100644 --- a/calendar/gui/e-cal-popup.c +++ b/calendar/gui/e-cal-popup.c @@ -210,7 +210,10 @@ ecalp_part_popup_set_background(EPopup *ep, EPopupItem *item, void *data) CamelMimePart *part = NULL; part = ((EAttachment *) ((ECalPopupTargetAttachments *) t)->attachments->data)->body; - + + if (!part) + return; + filename = g_strdup(camel_mime_part_get_filename(part)); /* if filename is blank, create a default filename based on MIME type */ |