Check whether the found item is a directory.
authorenglebass <englebass@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Tue, 17 Mar 2009 13:42:21 +0000 (13:42 +0000)
committerenglebass <englebass@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Tue, 17 Mar 2009 13:42:21 +0000 (13:42 +0000)
git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/efreet@39524 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/efreet_icon.c

index 33a1cea..be21b6d 100644 (file)
@@ -874,7 +874,7 @@ efreet_icon_fallback_dir_scan(const char *dir, const char *icon_name)
 #ifdef SLOPPY_SPEC
     if (!icon)
     {
-        if (ecore_file_exists(path))
+        if ((ecore_file_exists(path))  && (!ecore_file_is_dir(path)))
         {
             icon = strdup(path);
 #ifdef STRICT_SPEC