aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/importers
diff options
context:
space:
mode:
authorHarry Lu <harry.lu@sun.com>2003-11-03 11:03:11 +0800
committerHarry Lu <haip@src.gnome.org>2003-11-03 11:03:11 +0800
commit77340f152092fb75062229796782860de11bd53e (patch)
tree0b3649c4249fcfd34742eedc3058f6f15a9967d9 /calendar/importers
parent1a80fb97d55da056db023e41cf3213f260c15cad (diff)
downloadgsoc2013-evolution-77340f152092fb75062229796782860de11bd53e.tar.gz
gsoc2013-evolution-77340f152092fb75062229796782860de11bd53e.tar.zst
gsoc2013-evolution-77340f152092fb75062229796782860de11bd53e.zip
Fix for #50387.
2003-11-03 Harry Lu <harry.lu@sun.com> Fix for #50387. * importers/icalendar-importer.c (support_format_fn): Call icalcomponent_is_valid() to check whether the returned icalcomponent is valid. svn path=/trunk/; revision=23165
Diffstat (limited to 'calendar/importers')
-rw-r--r--calendar/importers/icalendar-importer.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/calendar/importers/icalendar-importer.c b/calendar/importers/icalendar-importer.c
index f2dcbd7097..a98fd9f126 100644
--- a/calendar/importers/icalendar-importer.c
+++ b/calendar/importers/icalendar-importer.c
@@ -315,8 +315,11 @@ support_format_fn (EvolutionImporter *importer,
if (contents) {
icalcomp = icalparser_parse_string (contents);
if (icalcomp) {
+ if (icalcomponent_is_valid (icalcomp))
+ ret = TRUE;
+ else
+ ret = FALSE;
icalcomponent_free (icalcomp);
- ret = TRUE;
}
}