Enlightenment CVS committal

Author  : mekius
Project : e17
Module  : libs/ewl

Dir     : e17/libs/ewl/src/lib


Modified Files:
        ewl_filelist.c 


Log Message:
Added missing ptr check

===================================================================
RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_filelist.c,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -3 -r1.20 -r1.21
--- ewl_filelist.c      18 Oct 2006 16:28:08 -0000      1.20
+++ ewl_filelist.c      17 Nov 2006 06:13:35 -0000      1.21
@@ -626,8 +626,11 @@
                DRETURN_PTR(EWL_ICON_FOLDER, DLEVEL_STABLE);
 
        ptr = strrchr(path, '.');
-       ret = ewl_io_manager_extension_icon_name_get(ptr);
-       if (ret) DRETURN_PTR(ret, DLEVEL_STABLE);
+       if (ptr) 
+       {
+               ret = ewl_io_manager_extension_icon_name_get(ptr);
+               if (ret) DRETURN_PTR(ret, DLEVEL_STABLE);
+       }
 
        if (ecore_file_can_exec(path))
                ret = EWL_ICON_APPLICATION_X_EXECUTABLE;



-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to