eet: shutup a warning and use the right pointer source even if they are the same.
authorCedric Bail <cedric.bail@samsung.com>
Mon, 4 Nov 2013 03:46:48 +0000 (12:46 +0900)
committerCedric Bail <cedric.bail@samsung.com>
Mon, 4 Nov 2013 03:46:48 +0000 (12:46 +0900)
src/lib/eet/eet_lib.c

index e32fcc0..3ad0866 100644 (file)
@@ -1477,8 +1477,8 @@ eet_mmap(const Eina_File *file)
    ef->sha1_length = 0;
    ef->readfp_owned = EINA_TRUE;
 
-   ef->data_size = eina_file_size_get(file);
-   ef->data = eina_file_map_all(file, EINA_FILE_SEQUENTIAL);
+   ef->data_size = eina_file_size_get(ef->readfp);
+   ef->data = eina_file_map_all(ef->readfp, EINA_FILE_SEQUENTIAL);
    if (eet_test_close((ef->data == NULL), ef))
      goto on_error;