Enlightenment CVS committal

Author  : devilhorns
Project : e_modules
Module  : tclock

Dir     : e_modules/tclock


Modified Files:
        e_mod_main.c 


Log Message:
Fix Config call for current container. Better trapping
===================================================================
RCS file: /cvsroot/enlightenment/e_modules/tclock/e_mod_main.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -3 -r1.5 -r1.6
--- e_mod_main.c        30 Dec 2005 13:13:38 -0000      1.5
+++ e_mod_main.c        30 Dec 2005 14:42:33 -0000      1.6
@@ -84,12 +84,15 @@
 {
    Evas_List *l;
    TClock *t;
-   TClock_Face *tf;
 
    t = module->data;
+   if (!t) return 0;
+   if (!t->faces) return 0;
    for (l = t->faces; l; l = l->next)
      {
+       TClock_Face *tf;        
        tf = l->data;
+       if (!tf) return 0;
        if (tf->con == e_container_current_get(e_manager_current_get()))
          {
             /* Configure Clock */




-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to