forked from enlightenment/efl
don't crash on an empty <Name></Name> tag in a menu
SVN revision: 56394
This commit is contained in:
parent
02b46306bf
commit
618ed1f5fb
|
@ -1323,6 +1323,8 @@ efreet_menu_handle_name(Efreet_Menu_Internal *parent, Efreet_Xml *xml)
|
|||
INF("efreet_menu_handle_name() setting second name into menu");
|
||||
return 0;
|
||||
}
|
||||
/* ignore the name if it is empty */
|
||||
if (!xml->text) return 1;
|
||||
|
||||
/* ignore the name if it contains a / */
|
||||
if (strchr(xml->text, '/')) return 1;
|
||||
|
|
Loading…
Reference in New Issue