diff options
author | Iain Holmes <iain@src.gnome.org> | 2001-07-13 05:10:55 +0800 |
---|---|---|
committer | Iain Holmes <iain@src.gnome.org> | 2001-07-13 05:10:55 +0800 |
commit | 0fbbeea421bb8120e58f3f2d2a9fe5d25e180608 (patch) | |
tree | 7a117c33fa09aa552b4251f83d7767b4ca792209 /addressbook/backend | |
parent | c65b4386072a18991f571775f89e43505404e9aa (diff) | |
download | gsoc2013-evolution-0fbbeea421bb8120e58f3f2d2a9fe5d25e180608.tar gsoc2013-evolution-0fbbeea421bb8120e58f3f2d2a9fe5d25e180608.tar.gz gsoc2013-evolution-0fbbeea421bb8120e58f3f2d2a9fe5d25e180608.tar.bz2 gsoc2013-evolution-0fbbeea421bb8120e58f3f2d2a9fe5d25e180608.tar.lz gsoc2013-evolution-0fbbeea421bb8120e58f3f2d2a9fe5d25e180608.tar.xz gsoc2013-evolution-0fbbeea421bb8120e58f3f2d2a9fe5d25e180608.tar.zst gsoc2013-evolution-0fbbeea421bb8120e58f3f2d2a9fe5d25e180608.zip |
Check the file even if the extension is NULL
svn path=/trunk/; revision=11066
Diffstat (limited to 'addressbook/backend')
-rw-r--r-- | addressbook/backend/ebook/evolution-vcard-importer.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/addressbook/backend/ebook/evolution-vcard-importer.c b/addressbook/backend/ebook/evolution-vcard-importer.c index 7a3a56fbd6..caed08b8e0 100644 --- a/addressbook/backend/ebook/evolution-vcard-importer.c +++ b/addressbook/backend/ebook/evolution-vcard-importer.c @@ -156,12 +156,9 @@ support_format_fn (EvolutionImporter *importer, int i; ext = strrchr (filename, '.'); - - /* Require an extension in order to strcmp with our list of - supported extensions */ - if (ext == NULL) - return FALSE; - + if (ext == NULL) { + return check_file_is_vcard (filename); + } for (i = 0; supported_extensions[i] != NULL; i++) { if (strcmp (supported_extensions[i], ext) == 0) return check_file_is_vcard (filename); |