mirror of
https://github.com/gryf/wmaker.git
synced 2026-01-08 14:54:13 +01:00
Coverity: fix WPrefs texturepanel negative array index read
This commit is contained in:
committed by
Carlos R. Mafra
parent
0e00c6b605
commit
682c2767c2
@@ -689,7 +689,7 @@ static void changeTypeCallback(WMWidget *w, void *data)
|
|||||||
int i;
|
int i;
|
||||||
|
|
||||||
newType = WMGetPopUpButtonSelectedItem(w);
|
newType = WMGetPopUpButtonSelectedItem(w);
|
||||||
if (newType == panel->currentType)
|
if (newType < 0 || newType == panel->currentType)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (panel->currentType >= 0) {
|
if (panel->currentType >= 0) {
|
||||||
|
|||||||
Reference in New Issue
Block a user