Enlightenment CVS committal

Author  : onefang
Project : e17
Module  : apps/e

Dir     : e17/apps/e/src/bin


Modified Files:
        e_int_config_icon_themes.c 


Log Message:
Paranoid NULL checking added due to a report of crashes.  May simply move
the crash to later.  Let's see if this at least allows the dialog to
appear, which can give us more clues.

===================================================================
RCS file: /cvs/e/e17/apps/e/src/bin/e_int_config_icon_themes.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -3 -r1.1 -r1.2
--- e_int_config_icon_themes.c  20 Aug 2006 03:51:54 -0000      1.1
+++ e_int_config_icon_themes.c  20 Aug 2006 05:30:42 -0000      1.2
@@ -379,5 +379,13 @@
 
    m1 = data1;
    m2 = data2;
+
+   /* These are supposed to be required strings.  Be paranoid pending further 
investigation. */
+   if (!m1->theme) return 1;
+   if (!m2->theme) return -1;
+
+   if (!m1->theme->name) return 1;
+   if (!m2->theme->name) return -1;
+
    return (strcmp((const char*)m1->theme->name, (const char*)m2->theme->name));
 }



-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to