forked from enlightenment/efl
eina: forgotten lock, thanks coverity.
This commit is contained in:
parent
ec67ea9c1e
commit
d7c8d221b0
|
@ -285,6 +285,8 @@ eina_file_flush(Eina_File *file, unsigned long int length)
|
|||
Eina_List *dead_map = NULL;
|
||||
Eina_List *l;
|
||||
|
||||
eina_lock_take(&file->lock);
|
||||
|
||||
// File size changed
|
||||
if (file->global_map != MAP_FAILED)
|
||||
{
|
||||
|
@ -325,6 +327,8 @@ eina_file_flush(Eina_File *file, unsigned long int length)
|
|||
}
|
||||
|
||||
file->dead_map = eina_list_merge(file->dead_map, dead_map);
|
||||
|
||||
eina_lock_release(&file->lock);
|
||||
}
|
||||
|
||||
// Private to this file API
|
||||
|
|
Loading…
Reference in New Issue