Check whether dirs is NULL

SVN revision: 56594
This commit is contained in:
Sebastian Dransfeld 2011-01-31 11:44:12 +00:00
parent 1e99acb865
commit cf746f7d1f
2 changed files with 6 additions and 0 deletions

View File

@ -38,3 +38,7 @@
* Return Eina_Bool if the return value of a function is true or false
2011-01-XX Sebastian Dransfeld
* Check whether dirs is NULL

View File

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