From: Enlightenment S. <no-...@en...> - 2008-10-06 05:58:34
|
Log: Check for desktop entries' non-emptiness before using them (no check for name as I eexpect them to always be non-empty). Author: illogict Date: 2008-10-05 22:55:53 -0700 (Sun, 05 Oct 2008) New Revision: 36471 Modified: trunk/e/src/bin/e_int_menus.c Modified: trunk/e/src/bin/e_int_menus.c =================================================================== --- trunk/e/src/bin/e_int_menus.c 2008-10-06 03:24:26 UTC (rev 36470) +++ trunk/e/src/bin/e_int_menus.c 2008-10-06 05:55:53 UTC (rev 36471) @@ -1644,9 +1644,11 @@ if ((e_config->menu_eap_name_show) && (entry->name)) opt |= 0x4; if (desktop) { - if ((e_config->menu_eap_generic_show) && (desktop->generic_name)) + if ((e_config->menu_eap_generic_show) && (desktop->generic_name) && + (desktop->generic_name[0] != 0)) opt |= 0x2; - if ((e_config->menu_eap_comment_show) && (desktop->comment)) + if ((e_config->menu_eap_comment_show) && (desktop->comment) && + (desktop->comment[0] != 0)) opt |= 0x1; } |