diff options
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; |