1
0
mirror of https://github.com/gryf/wmaker.git synced 2026-01-11 17:04:15 +01:00

Coverity: fix WPrefs mousesettings menu negative array index read

This commit is contained in:
David Maciejak
2023-03-02 19:24:08 +08:00
committed by Carlos R. Mafra
parent cf178d011b
commit ceafbf0629

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