forked from enlightenment/efl
Fix eina_file_virtual_map_new function (/me glares at Frenchie).
- Spank Cedric !!!!! NB: How about we actually fill in "map" after allocation ?? NB: Previously we would malloc "map" and immediately exit without filling it in, without adding it to the hash....nothing. Just allocate and get out. Bad Frenchie !!! Signed-off-by: Chris Michael <cp.michael@samsung.com>
This commit is contained in:
parent
397e8afc1a
commit
a97f3c0b9b
|
@ -179,7 +179,7 @@ eina_file_virtual_map_new(Eina_File *file,
|
|||
if (!map)
|
||||
{
|
||||
map = malloc(sizeof (Eina_File_Map));
|
||||
goto on_error;
|
||||
if (!map) goto on_error;
|
||||
|
||||
map->map = ((char*) file->global_map) + offset;
|
||||
map->offset = offset;
|
||||
|
|
Loading…
Reference in New Issue