avoid string null pointer initialisation

This commit is contained in:
louis 2015-06-05 07:19:51 +02:00
parent f7263ace23
commit db69972a51

View File

@ -211,7 +211,7 @@ void cSDDisplayMenu::SetItem(const char *Text, int Index, bool Current, bool Sel
} else if (cat == mcSetup && rootView->SubViewAvailable()) {
list->AddSetupMenuItem(Index, Text, Current, Selectable);
} else if ((cat == mcSchedule || cat == mcScheduleNow || cat == mcScheduleNext) && rootView->SubViewAvailable()) {
list->AddSchedulesMenuItem(Index, NULL, NULL, tmNone, MenuCategory(), false, Current, Selectable, Text);
list->AddSchedulesMenuItem(Index, NULL, NULL, tmNone, MenuCategory(), false, Current, Selectable, Text ? Text : "");
} else {
rootView->CorrectDefaultMenu();
string *tabTexts = new string[MaxTabs];