From a360a80d1608602f9b03abf14db630595488cb37 Mon Sep 17 00:00:00 2001 From: wurongxin Date: Tue, 29 Jan 2019 12:45:30 +0800 Subject: fix a bug about use of unitialised variable. refer to https://github.com/hishamhm/htop/issues/882 --- InfoScreen.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'InfoScreen.c') diff --git a/InfoScreen.c b/InfoScreen.c index fab8daea..1823f366 100644 --- a/InfoScreen.c +++ b/InfoScreen.c @@ -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); } -- cgit v1.2.3