diff options
-rw-r--r-- | addressbook/ChangeLog | 5 | ||||
-rw-r--r-- | addressbook/backend/ebook/evolution-ldif-importer.c | 4 |
2 files changed, 9 insertions, 0 deletions
diff --git a/addressbook/ChangeLog b/addressbook/ChangeLog index 325a934e6c..67016e47a7 100644 --- a/addressbook/ChangeLog +++ b/addressbook/ChangeLog @@ -1,3 +1,8 @@ +2001-10-16 Iain Holmes <iain@ximian.com> + + * backend/ebook/evolution-ldif-importer.c (support_format_fn): Return + FALSE if no extension. + 2001-10-16 Jon Trowbridge <trow@ximian.com> * backend/ebook/e-card.c (e_card_get_id): If card->id is NULL, diff --git a/addressbook/backend/ebook/evolution-ldif-importer.c b/addressbook/backend/ebook/evolution-ldif-importer.c index 101a37b1c9..23c6bf8743 100644 --- a/addressbook/backend/ebook/evolution-ldif-importer.c +++ b/addressbook/backend/ebook/evolution-ldif-importer.c @@ -530,6 +530,10 @@ support_format_fn (EvolutionImporter *importer, int i; ext = strrchr (filename, '.'); + if (ext == NULL) { + return FALSE; + } + for (i = 0; supported_extensions[i] != NULL; i++) { if (strcmp (supported_extensions[i], ext) == 0) return TRUE; |