summaryrefslogtreecommitdiff
path: root/src/lib/efreet
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/efreet')
-rw-r--r--src/lib/efreet/efreet_mime.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/lib/efreet/efreet_mime.c b/src/lib/efreet/efreet_mime.c
index b21a75e1a5..23d86cfd3f 100644
--- a/src/lib/efreet/efreet_mime.c
+++ b/src/lib/efreet/efreet_mime.c
@@ -1244,6 +1244,14 @@ efreet_mime_magic_check_priority(const char *file,
1244 const char *last_mime = NULL; 1244 const char *last_mime = NULL;
1245 int c; 1245 int c;
1246 char v, buf[EFREET_MIME_MAGIC_BUFFER_SIZE]; 1246 char v, buf[EFREET_MIME_MAGIC_BUFFER_SIZE];
1247 struct stat s;
1248
1249#ifdef _WIN32
1250 if (stat(file, &s) || s.st_size == 0)
1251#else
1252 if (lstat(file, &s) || s.st_size == 0)
1253#endif
1254 return NULL;
1247 1255
1248 f = fopen(file, "rb"); 1256 f = fopen(file, "rb");
1249 if (!f) return NULL; 1257 if (!f) return NULL;