summaryrefslogtreecommitdiff
path: root/src/lib/efreet
diff options
context:
space:
mode:
authorJean Guyomarc'h <jean.guyomarch@openwide.fr>2016-08-26 15:53:05 +0200
committerJean Guyomarc'h <jean@guyomarch.bzh>2016-08-26 21:16:39 +0200
commit1ab1e3697dc4dfead65fadc02747d876c993f935 (patch)
treeea027ad7443d11e536356fe6c114e8dff835e33b /src/lib/efreet
parent92d3fc8f4ffec07668621e71c3ad5d6875fc06c2 (diff)
efreet: mime types database can be empty
When the mime types database is empty, the file will be exactly 28 bytes. Fixes T4426
Diffstat (limited to 'src/lib/efreet')
-rw-r--r--src/lib/efreet/efreet_mime.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/efreet/efreet_mime.c b/src/lib/efreet/efreet_mime.c
index 6cb331b43b..63e6b15c02 100644
--- a/src/lib/efreet/efreet_mime.c
+++ b/src/lib/efreet/efreet_mime.c
@@ -204,7 +204,7 @@ _efreet_mimedb_update(void)
204 if (mimedb_ptr) 204 if (mimedb_ptr)
205 { 205 {
206 mimedb_size = eina_file_size_get(mimedb); 206 mimedb_size = eina_file_size_get(mimedb);
207 if ((mimedb_size > (16 + 4 + 4 + 4) && 207 if ((mimedb_size >= (16 + 4 + 4 + 4) &&
208 (!strncmp((char *)mimedb_ptr, "EfrEeT-MiMeS-001", 16)))) 208 (!strncmp((char *)mimedb_ptr, "EfrEeT-MiMeS-001", 16))))
209 { 209 {
210 // load ok - magic fine. more sanity checks? 210 // load ok - magic fine. more sanity checks?