aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/backend
diff options
context:
space:
mode:
authorIain Holmes <iain@src.gnome.org>2001-10-17 06:17:33 +0800
committerIain Holmes <iain@src.gnome.org>2001-10-17 06:17:33 +0800
commite013e970326e2e8bb8b9fe090801d826c559addd (patch)
tree16596b821334dcb6bcaf00bced6b2759fce14b3e /addressbook/backend
parent6d04187e1c3a0c8cc66494288236a8acf1b8fae6 (diff)
downloadgsoc2013-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
Diffstat (limited to 'addressbook/backend')
-rw-r--r--addressbook/backend/ebook/evolution-ldif-importer.c4
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;