e17: avoid segfault with no xdg menu

SVN revision: 59553
This commit is contained in:
Michael BOUCHAUD 2011-05-20 16:19:53 +00:00
parent f351c9e5ab
commit 19bdb8b1df
1 changed files with 1 additions and 0 deletions

View File

@ -32,6 +32,7 @@ e_order_init(void)
char buf[PATH_MAX];
free(menu_file);
menu_file = NULL;
snprintf(buf, sizeof(buf), "/etc/xdg/menus/enlightenment.menu");
if (ecore_file_exists(buf)) menu_file = strdup(buf);
else