menu_add_entry(m, menu_entry_new_submenu("subz", s));
t = (Menu *)plugin_create("timed_menu");
- a = action_from_string("execute");
- a->data.execute.path = g_strdup("xeyes");
- menu_add_entry(t, menu_entry_new("xeyes", a));
- menu_add_entry(m, menu_entry_new_submenu("timed", t));
+ if (t) {
+ a = action_from_string("execute");
+ a->data.execute.path = g_strdup("xeyes");
+ menu_add_entry(t, menu_entry_new("xeyes", a));
+ menu_add_entry(m, menu_entry_new_submenu("timed", t));
+ }
s = menu_new("empty", "chub", m);
menu_add_entry(m, menu_entry_new_submenu("empty", s));