Enlightenment CVS committal

Author  : onefang
Project : e17
Module  : apps/e_utils

Dir     : e17/apps/e_utils/src/bin/e17genmenu


Modified Files:
        fdo_menus.c 


Log Message:
Attempt to fix a segfault under FreeBSD 6.1

===================================================================
RCS file: /cvs/e/e17/apps/e_utils/src/bin/e17genmenu/fdo_menus.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -3 -r1.5 -r1.6
--- fdo_menus.c 26 Apr 2006 08:24:48 -0000      1.5
+++ fdo_menus.c 26 Apr 2006 23:36:04 -0000      1.6
@@ -561,7 +561,8 @@
         legacy_data->current = legacy_data->current->parent;
         menu_count--;
      }
-   if (legacy_data->current->elements[1].type == DUMB_TREE_ELEMENT_TYPE_STRING)
+   if ((legacy_data->current) && (legacy_data->current->size > 0) &&
+       (legacy_data->current->elements[1].type == 
DUMB_TREE_ELEMENT_TYPE_STRING))
      {
         menu_path = (char *)legacy_data->current->elements[1].element;
         menu_path += 12 + legacy_data->menu_length;




-------------------------------------------------------
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