From: Enlightenment S. <no-...@en...> - 2009-09-30 10:05:26
|
Log: * eet: Fix some llvm report. Author: cedric Date: 2009-09-30 03:05:15 -0700 (Wed, 30 Sep 2009) New Revision: 42816 Modified: trunk/eet/src/lib/eet_data.c trunk/eet/src/lib/eet_lib.c Modified: trunk/eet/src/lib/eet_data.c =================================================================== --- trunk/eet/src/lib/eet_data.c 2009-09-30 09:25:28 UTC (rev 42815) +++ trunk/eet/src/lib/eet_data.c 2009-09-30 10:05:15 UTC (rev 42816) @@ -2874,7 +2874,7 @@ { 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 @@ } } } - else if (type == EET_T_INLINED_STRING) + else if (edd && type == EET_T_INLINED_STRING) { char **str; Modified: trunk/eet/src/lib/eet_lib.c =================================================================== --- trunk/eet/src/lib/eet_lib.c 2009-09-30 09:25:28 UTC (rev 42815) +++ trunk/eet/src/lib/eet_lib.c 2009-09-30 10:05:15 UTC (rev 42816) @@ -1348,6 +1348,9 @@ /* 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)) |