Zero number of entries as well to avoid crashes on free

This commit is contained in:
simon.kagstrom 2010-02-10 08:50:25 +00:00
parent 55064b61cf
commit 5841aa35a3

View File

@ -308,6 +308,7 @@ void Menu::setText(const char **messages, int *submenu_defaults)
/* Empty messages are allowed */
this->p_submenus = NULL;
this->pp_msgs = NULL;
this->n_entries = 0;
if (!messages)
return;