Coverity: fix WPrefs mousesettings menu negative array index read

This commit is contained in:
David Maciejak authored and Carlos R. Mafra committed 2023-03-02 17:04:48 +00:00
1 parent cf178d011b
commit ceafbf0629
1 file changed
+2
+2
View File
@@ -748,6 +748,8 @@ static void storeData(_Panel * panel)
int action;
action = WMGetPopUpButtonSelectedItem(panel->mouse_action[i].popup);
if (action < 0)
continue;
if (button_list[i].type == T_BUTTON)
db_value = button_actions[action].db_value;
else