personalize.cpp: avoid length array with value 0

Origin commit data
------------------
Branch: ni/coolstream
Commit: 52ee152bf7
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2021-11-06 (Sat, 06 Nov 2021)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
Jacek Jendrzej
2021-11-06 20:34:39 +01:00
committed by vanhofen
parent 465f89f26f
commit c3dd94a148

View File

@@ -365,6 +365,8 @@ int CPersonalizeGui::ShowPersonalizationMenu()
}
CMenuWidget* plMenu = NULL;
int pcount = g_Plugins->getNumberOfPlugins();
if (!pcount)
pcount = 1;
std::string pldesc[pcount];
int pltype[pcount];
if (show_pluginmenu)