diff options
Diffstat (limited to 'calendar/importers/icalendar-importer.c')
-rw-r--r-- | calendar/importers/icalendar-importer.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/calendar/importers/icalendar-importer.c b/calendar/importers/icalendar-importer.c index ab3cffcfa2..262c925b74 100644 --- a/calendar/importers/icalendar-importer.c +++ b/calendar/importers/icalendar-importer.c @@ -120,9 +120,12 @@ load_file_fn (EvolutionImporter *importer, char *parent; name = strrchr (folderpath, '/'); - if (!name) { + if (name == NULL || name == folderpath) { parent = g_strdup ("evolution/local/"); - name = folderpath; + if (folderpath[0] == '/') + name = folderpath + 1; + else + name = folderpath; } else { name += 1; |