From f682ffa8b2c0a601d5b1b8914cbc2ccba5c62749 Mon Sep 17 00:00:00 2001 From: Jacek Jendrzej Date: Sat, 6 Nov 2021 16:37:55 +0100 Subject: [PATCH] personalize.cpp: avoid length array with value 0 --- src/gui/personalize.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gui/personalize.cpp b/src/gui/personalize.cpp index e53a56616..150c74d68 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)