1
0
mirror of https://github.com/gryf/wmaker.git synced 2026-01-05 21:34:17 +01:00

Coverity: fix WPrefs texturepanel negative array index read

This commit is contained in:
David Maciejak
2023-03-01 22:26:50 +08:00
committed by Carlos R. Mafra
parent 0e00c6b605
commit 682c2767c2

View File

@@ -689,7 +689,7 @@ static void changeTypeCallback(WMWidget *w, void *data)
int i;
newType = WMGetPopUpButtonSelectedItem(w);
if (newType == panel->currentType)
if (newType < 0 || newType == panel->currentType)
return;
if (panel->currentType >= 0) {