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:
committed by
Carlos R. Mafra
parent
cf178d011b
commit
ceafbf0629
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user