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:
Damn insomnia. Let's try to do something useful.
One more crack at this.
===================================================================
RCS file:
/cvsroot/enlightenment/e17/apps/e_utils/src/bin/e17genmenu/fdo_menus.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -3 -r1.3 -r1.4
--- fdo_menus.c 9 Mar 2006 15:00:12 -0000 1.3
+++ fdo_menus.c 9 Mar 2006 19:34:29 -0000 1.4
@@ -534,7 +534,8 @@
int i, count = 0, menu_count = 0;
legacy_data = (struct _fdo_menus_legacy_data *)data;
- 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;
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs