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:
Chris Michael 2013-08-05 13:01:52 +01:00
parent 397e8afc1a
commit a97f3c0b9b
1 changed files with 1 additions and 1 deletions

View File

@ -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;