* eet: don't open file two small to be valid.
authorcedric <cedric>
Fri, 12 Nov 2010 10:31:07 +0000 (10:31 +0000)
committercedric <cedric@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Fri, 12 Nov 2010 10:31:07 +0000 (10:31 +0000)
git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eet@54491 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/eet_lib.c

index d4b0ec1..a9f8a68 100644 (file)
@@ -1555,8 +1555,7 @@ eet_open(const char   *file,
              goto open_error;
           }
 
-        if ((mode == EET_FILE_MODE_READ) &&
-            (file_stat.st_size < ((int)sizeof(int) * 3)))
+        if (file_stat.st_size < ((int)sizeof(int) * 3))
           {
              fclose(fp);
              fp = NULL;