1
0
mirror of https://github.com/gryf/wmaker.git synced 2025-12-18 20:10:29 +01:00

Coverity: fix WPrefs menu negative array index read

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

View File

@@ -291,6 +291,8 @@ static void changedItemPad(WMWidget * w, void *data)
_Panel *panel = (_Panel *) data;
int padn = WMGetPopUpButtonSelectedItem(w);
if (padn < 0)
return;
WMUnmapWidget(panel->itemPad[panel->currentPad]);
WMMapWidget(panel->itemPad[padn]);