* eet: Fix some llvm report.

SVN revision: 42816
This commit is contained in:
Cedric BAIL 2009-09-30 10:05:15 +00:00
parent 39b6c9148c
commit 5ca2776a01
2 changed files with 5 additions and 2 deletions

View File

@ -2874,7 +2874,7 @@ eet_data_get_unknown(Eet_Free_Context *context, const Eet_Dictionary *ed, Eet_Da
{
eet_data_dump_simple_type(type, echnk->name, data, level, dumpfunc, dumpdata);
}
else if (type == EET_T_STRING)
else if (edd && type == EET_T_STRING)
{
char **str;
@ -2893,7 +2893,7 @@ eet_data_get_unknown(Eet_Free_Context *context, const Eet_Dictionary *ed, Eet_Da
}
}
}
else if (type == EET_T_INLINED_STRING)
else if (edd && type == EET_T_INLINED_STRING)
{
char **str;

View File

@ -1348,6 +1348,9 @@ eet_open(const char *file, Eet_File_Mode mode)
/* try open the file based on mode */
if ((mode == EET_FILE_MODE_READ) || (mode == EET_FILE_MODE_READ_WRITE))
{
/* Prevent garbage in futur comparison. */
file_stat.st_mtime = 0;
fp = fopen(file, "rb");
if (!fp) goto on_error;
if (fstat(fileno(fp), &file_stat))