mirror of
https://projects.vdr-developer.org/git/vdr-plugin-skindesigner.git
synced 2023-10-19 17:58:31 +02:00
avoid string null pointer initialisation
This commit is contained in:
parent
f7263ace23
commit
db69972a51
@ -211,7 +211,7 @@ void cSDDisplayMenu::SetItem(const char *Text, int Index, bool Current, bool Sel
|
|||||||
} else if (cat == mcSetup && rootView->SubViewAvailable()) {
|
} else if (cat == mcSetup && rootView->SubViewAvailable()) {
|
||||||
list->AddSetupMenuItem(Index, Text, Current, Selectable);
|
list->AddSetupMenuItem(Index, Text, Current, Selectable);
|
||||||
} else if ((cat == mcSchedule || cat == mcScheduleNow || cat == mcScheduleNext) && rootView->SubViewAvailable()) {
|
} 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 {
|
} else {
|
||||||
rootView->CorrectDefaultMenu();
|
rootView->CorrectDefaultMenu();
|
||||||
string *tabTexts = new string[MaxTabs];
|
string *tabTexts = new string[MaxTabs];
|
||||||
|
Loading…
Reference in New Issue
Block a user