mirror of
https://github.com/gryf/wmaker.git
synced 2026-01-08 06:44:11 +01:00
Coverity: fix WPrefs preference negative array index read
This commit is contained in:
committed by
Carlos R. Mafra
parent
682c2767c2
commit
cf178d011b
@@ -196,9 +196,13 @@ static void storeData(_Panel * panel)
|
||||
int i;
|
||||
|
||||
i = WMGetPopUpButtonSelectedItem(panel->sizeP);
|
||||
if (i < 0)
|
||||
return;
|
||||
SetStringForKey(resize_display[i].db_value, "ResizeDisplay");
|
||||
|
||||
i = WMGetPopUpButtonSelectedItem(panel->posiP);
|
||||
if (i < 0)
|
||||
return;
|
||||
SetStringForKey(move_display[i].db_value, "MoveDisplay");
|
||||
|
||||
lr = WMGetButtonSelected(panel->lrB);
|
||||
|
||||
Reference in New Issue
Block a user