fix a bug about use of unitialised variable. refer to https://github.com/hishamhm/htop/issues/882

This commit is contained in:
wurongxin 2019-01-29 12:45:30 +08:00
parent b7b4200f85
commit a360a80d16
1 changed files with 1 additions and 1 deletions

View File

@ -135,7 +135,7 @@ void InfoScreen_run(InfoScreen* this) {
if (mevent.y >= panel->y && mevent.y < LINES - 1) {
Panel_setSelected(panel, mevent.y - panel->y + panel->scrollV);
ch = 0;
} if (mevent.y == LINES - 1)
} else if (mevent.y == LINES - 1)
ch = IncSet_synthesizeEvent(this->inc, mevent.x);
}