diff options
author | Iain Holmes <iain@src.gnome.org> | 2001-10-17 06:17:33 +0800 |
---|---|---|
committer | Iain Holmes <iain@src.gnome.org> | 2001-10-17 06:17:33 +0800 |
commit | e013e970326e2e8bb8b9fe090801d826c559addd (patch) | |
tree | 16596b821334dcb6bcaf00bced6b2759fce14b3e | |
parent | 6d04187e1c3a0c8cc66494288236a8acf1b8fae6 (diff) | |
download | gsoc2013-evolution-e013e970326e2e8bb8b9fe090801d826c559addd.tar gsoc2013-evolution-e013e970326e2e8bb8b9fe090801d826c559addd.tar.gz gsoc2013-evolution-e013e970326e2e8bb8b9fe090801d826c559addd.tar.bz2 gsoc2013-evolution-e013e970326e2e8bb8b9fe090801d826c559addd.tar.lz gsoc2013-evolution-e013e970326e2e8bb8b9fe090801d826c559addd.tar.xz gsoc2013-evolution-e013e970326e2e8bb8b9fe090801d826c559addd.tar.zst gsoc2013-evolution-e013e970326e2e8bb8b9fe090801d826c559addd.zip |
Check for no extension
svn path=/trunk/; revision=13710
-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; |