don't crash on an empty <Name></Name> tag in a menu

SVN revision: 56394
This commit is contained in:
rephorm 2011-01-30 03:55:06 +00:00 committed by rephorm
parent 02b46306bf
commit 618ed1f5fb
1 changed files with 2 additions and 0 deletions

View File

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