Make check for stat return more explicit

SVN revision: 56591
This commit is contained in:
Sebastian Dransfeld 2011-01-31 11:43:42 +00:00
parent e3e3b2a204
commit 49fa2a8861
2 changed files with 5 additions and 1 deletions

View File

@ -26,3 +26,7 @@
* Always use icon cache, remove old code
2011-01-XX Sebastian Dransfeld
* Make check for stat return more explicit

View File

@ -31,7 +31,7 @@ cache_directory_find(Eina_Hash *dirs, const char *dir)
Efreet_Cache_Directory *dcache;
struct stat st;
if (stat(dir, &st)) return EINA_FALSE;
if (stat(dir, &st) < 0) return EINA_FALSE;
dcache = eina_hash_find(dirs, dir);
if (!dcache)
{