Enlightenment CVS committal

Author  : stffrdhrn
Project : e17
Module  : apps/e

Dir     : e17/apps/e/src/bin


Modified Files:
        e_fileman_file.c 


Log Message:
- Bug, Don't crash is the assoc_apps is not initialized

===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/e/src/bin/e_fileman_file.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -3 -r1.6 -r1.7
--- e_fileman_file.c    24 Oct 2005 01:17:01 -0000      1.6
+++ e_fileman_file.c    25 Oct 2005 14:49:41 -0000      1.7
@@ -20,8 +20,8 @@
 static void _e_fm_file_free(E_Fm_File *file);
 
 /* TODO Make init and shutdown func that populates the assoc */
-static E_Config_DD *assoc_app_edd;
-static Evas_List   *assoc_apps;
+static E_Config_DD *assoc_app_edd = NULL;
+static Evas_List   *assoc_apps = NULL;
 
 #if 0
        {
@@ -380,6 +380,8 @@
    E_Fm_Assoc_App *assoc;
    Ecore_Exe *exe;
 
+   if (!assoc_apps) return 0;
+   
    for (l = assoc_apps; l; l = l->next)
      {
        char *ext;




-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to