Enlightenment CVS committal

Author  : dj2
Project : e17
Module  : libs/ecore

Dir     : e17/libs/ecore/src/lib/ecore_config


Modified Files:
        ecore_config.c 


Log Message:
- continue to load even if the system.eet file dosen't exist. This file
  isn't strictly necessary and we can continue without it.

===================================================================
RCS file: 
/cvsroot/enlightenment/e17/libs/ecore/src/lib/ecore_config/ecore_config.c,v
retrieving revision 1.54
retrieving revision 1.55
diff -u -3 -r1.54 -r1.55
--- ecore_config.c      1 Dec 2004 23:07:42 -0000       1.54
+++ ecore_config.c      6 Dec 2004 21:15:29 -0000       1.55
@@ -1569,9 +1569,12 @@
        if ((buf = malloc(PATH_MAX * sizeof(char))))
          {
             snprintf(buf, PATH_MAX, "%s/.e/config.eet", p);
-            if (ecore_config_file_load(buf) != 0)
-               if (ecore_config_file_load(PACKAGE_DATA_DIR "/system.eet") != 0)
-                  return ECORE_CONFIG_ERR_NOFILE;
+            if (ecore_config_file_load(buf) != 0) {
+               /* even if this file (system.eet) dosen't exist we can 
+                * continue without it as it isn't striclty necessary.
+               */
+               ecore_config_file_load(PACKAGE_DATA_DIR "/system.eet");
+            }
             sys = __ecore_config_bundle_local->data;
             while (sys)
               {




-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to