if we are mallocing structs... lets set all the members to sane values

shall we... or use CALLOC! :/



SVN revision: 71343
This commit is contained in:
Carsten Haitzler 2012-05-23 04:21:43 +00:00
parent 2d425e48db
commit 6bacd49c6d
1 changed files with 1 additions and 0 deletions

View File

@ -1021,6 +1021,7 @@ eina_file_open(const char *path, Eina_Bool shared)
n->fd = fd;
n->shared = shared;
n->delete_me = EINA_FALSE;
n->global_faulty = EINA_FALSE;
eina_lock_new(&n->lock);
eina_hash_direct_add(_eina_file_cache, n->filename, n);
}