forked from enlightenment/efl
efreet icon cache creation binary - remove redundent check
found by PVS studio
This commit is contained in:
parent
0efb70e317
commit
f4ce0d1b95
|
@ -929,9 +929,9 @@ main(int argc, char **argv)
|
|||
icon_ef = eet_open(efreet_icon_cache_file(theme->theme.name.internal), EET_FILE_MODE_READ_WRITE);
|
||||
if (!icon_ef) goto on_error_efreet;
|
||||
icon_version = eet_data_read(icon_ef, efreet_version_edd(), EFREET_CACHE_VERSION);
|
||||
if (theme->changed || !icon_version || (icon_version &&
|
||||
if ((theme->changed) || (!icon_version) ||
|
||||
((icon_version->major != EFREET_ICON_CACHE_MAJOR) ||
|
||||
(icon_version->minor != EFREET_ICON_CACHE_MINOR))))
|
||||
(icon_version->minor != EFREET_ICON_CACHE_MINOR)))
|
||||
{
|
||||
// delete old cache
|
||||
eet_close(icon_ef);
|
||||
|
|
Loading…
Reference in New Issue