diff options
author | Chenthill Palanisamy <pchen@src.gnome.org> | 2006-02-21 19:50:16 +0800 |
---|---|---|
committer | Chenthill Palanisamy <pchen@src.gnome.org> | 2006-02-21 19:50:16 +0800 |
commit | fe28e52052ee8fef8865f2f0dc064f4e95009c32 (patch) | |
tree | 9589ad379d1b501b5efa65dbb26489fe45385fa4 /plugins/import-ics-attachments/icsimporter.c | |
parent | 4c8b124e6b7c44ac15e6680884d196da69c3ee0a (diff) | |
download | gsoc2013-evolution-fe28e52052ee8fef8865f2f0dc064f4e95009c32.tar gsoc2013-evolution-fe28e52052ee8fef8865f2f0dc064f4e95009c32.tar.gz gsoc2013-evolution-fe28e52052ee8fef8865f2f0dc064f4e95009c32.tar.bz2 gsoc2013-evolution-fe28e52052ee8fef8865f2f0dc064f4e95009c32.tar.lz gsoc2013-evolution-fe28e52052ee8fef8865f2f0dc064f4e95009c32.tar.xz gsoc2013-evolution-fe28e52052ee8fef8865f2f0dc064f4e95009c32.tar.zst gsoc2013-evolution-fe28e52052ee8fef8865f2f0dc064f4e95009c32.zip |
fixes a crash.
svn path=/trunk/; revision=31556
Diffstat (limited to 'plugins/import-ics-attachments/icsimporter.c')
-rw-r--r-- | plugins/import-ics-attachments/icsimporter.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/plugins/import-ics-attachments/icsimporter.c b/plugins/import-ics-attachments/icsimporter.c index 40c5a02ddd..4e755799b3 100644 --- a/plugins/import-ics-attachments/icsimporter.c +++ b/plugins/import-ics-attachments/icsimporter.c @@ -93,11 +93,12 @@ void org_gnome_evolution_import_ics_attachments (EPlugin *ep, EMPopupTargetAttac { GSList *menus = NULL; icalcomponent_kind kind; - int len; + int len = 0; int i = 0; len = g_slist_length(t->attachments); - if (!camel_content_type_is(((CamelDataWrapper *) ((EAttachment *) t->attachments->data)->body)->mime_type, "text", "calendar") || len >1) + + if (len !=1 || !camel_content_type_is(((CamelDataWrapper *) ((EAttachment *) t->attachments->data)->body)->mime_type, "text", "calendar")) return; kind = get_menu_type (t); |