mirror of
https://github.com/gryf/wmaker.git
synced 2026-01-29 03:16:01 +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;
|
int action;
|
||||||
|
|
||||||
action = WMGetPopUpButtonSelectedItem(panel->mouse_action[i].popup);
|
action = WMGetPopUpButtonSelectedItem(panel->mouse_action[i].popup);
|
||||||
|
if (action < 0)
|
||||||
|
continue;
|
||||||
if (button_list[i].type == T_BUTTON)
|
if (button_list[i].type == T_BUTTON)
|
||||||
db_value = button_actions[action].db_value;
|
db_value = button_actions[action].db_value;
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user