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 /addressbook/backend | |
parent | 6d04187e1c3a0c8cc66494288236a8acf1b8fae6 (diff) | |
download | gsoc2013-evolution-e013e970326e2e8bb8b9fe090801d826c559addd.tar.gz gsoc2013-evolution-e013e970326e2e8bb8b9fe090801d826c559addd.tar.zst gsoc2013-evolution-e013e970326e2e8bb8b9fe090801d826c559addd.zip |
Check for no extension
svn path=/trunk/; revision=13710
Diffstat (limited to 'addressbook/backend')
-rw-r--r-- | addressbook/backend/ebook/evolution-ldif-importer.c | 4 |
1 files changed, 4 insertions, 0 deletions
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; |