From c3dd94a14872816a3d10abbfc7bca75a8a15c56d Mon Sep 17 00:00:00 2001 From: Jacek Jendrzej Date: Sat, 6 Nov 2021 20:34:39 +0100 Subject: [PATCH] personalize.cpp: avoid length array with value 0 Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/52ee152bf76fec34f93e2fbf9c314ad9703ca64b Author: Jacek Jendrzej Date: 2021-11-06 (Sat, 06 Nov 2021) ------------------ No further description and justification available within origin commit message! ------------------ This commit was generated by Migit --- src/gui/personalize.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gui/personalize.cpp b/src/gui/personalize.cpp index 40e850bc6..dbf434017 100644 --- a/src/gui/personalize.cpp +++ b/src/gui/personalize.cpp @@ -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)