Make check for stat return more explicit
SVN revision: 56591
This commit is contained in:
parent
e3e3b2a204
commit
49fa2a8861
|
@ -26,3 +26,7 @@
|
|||
|
||||
* Always use icon cache, remove old code
|
||||
|
||||
2011-01-XX Sebastian Dransfeld
|
||||
|
||||
* Make check for stat return more explicit
|
||||
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue