From e013e970326e2e8bb8b9fe090801d826c559addd Mon Sep 17 00:00:00 2001 From: Iain Holmes Date: Tue, 16 Oct 2001 22:17:33 +0000 Subject: Check for no extension svn path=/trunk/; revision=13710 --- addressbook/backend/ebook/evolution-ldif-importer.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'addressbook/backend') 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; -- cgit