forked from enlightenment/efl
parent
1e99acb865
commit
cf746f7d1f
|
@ -38,3 +38,7 @@
|
||||||
|
|
||||||
* Return Eina_Bool if the return value of a function is true or false
|
* Return Eina_Bool if the return value of a function is true or false
|
||||||
|
|
||||||
|
2011-01-XX Sebastian Dransfeld
|
||||||
|
|
||||||
|
* Check whether dirs is NULL
|
||||||
|
|
||||||
|
|
|
@ -31,6 +31,8 @@ cache_directory_find(Eina_Hash *dirs, const char *dir)
|
||||||
Efreet_Cache_Directory *dcache;
|
Efreet_Cache_Directory *dcache;
|
||||||
struct stat st;
|
struct stat st;
|
||||||
|
|
||||||
|
if (!dirs) return EINA_TRUE;
|
||||||
|
|
||||||
if (stat(dir, &st) < 0) return EINA_FALSE;
|
if (stat(dir, &st) < 0) return EINA_FALSE;
|
||||||
dcache = eina_hash_find(dirs, dir);
|
dcache = eina_hash_find(dirs, dir);
|
||||||
if (!dcache)
|
if (!dcache)
|
||||||
|
|
Loading…
Reference in New Issue