Check whether dirs is NULL
authorSebastian Dransfeld <sd@tango.flipp.net>
Mon, 31 Jan 2011 11:44:12 +0000 (11:44 +0000)
committerSebastian Dransfeld <sd@tango.flipp.net>
Mon, 31 Jan 2011 11:44:12 +0000 (11:44 +0000)
SVN revision: 56594

legacy/efreet/ChangeLog
legacy/efreet/src/bin/efreet_icon_cache_create.c

index 250dcef..e64c801 100644 (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
+
index 00284f0..adb5b3e 100644 (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)