Initialize ef->writes_pending.

Valgrind just noticed that "writes_pending" was not being initialized,
probably because some old code used calloc() (based on the comment
at the allocation step).


SVN revision: 34777
This commit is contained in:
Gustavo Sverzut Barbieri 2008-06-09 03:19:25 +00:00
parent f153d22daf
commit 83b37319b9
1 changed files with 1 additions and 0 deletions

View File

@ -1231,6 +1231,7 @@ eet_open(const char *file, Eet_File_Mode mode)
ef->mode = mode;
ef->header = NULL;
ef->mtime = file_stat.st_mtime;
ef->writes_pending = 0;
ef->delete_me_now = 0;
ef->data = NULL;
ef->data_size = 0;