diff options
author | wurongxin <se.wu.rongxin@gmail.com> | 2019-01-29 12:45:30 +0800 |
---|---|---|
committer | wurongxin <se.wu.rongxin@gmail.com> | 2019-01-29 12:45:30 +0800 |
commit | a360a80d1608602f9b03abf14db630595488cb37 (patch) | |
tree | c09042f56f4e7cd80012d3e0db8e10b0d5b7db89 /InfoScreen.c | |
parent | b7b4200f854f667a917b7da8f92b3e0426131bd7 (diff) |
fix a bug about use of unitialised variable. refer to https://github.com/hishamhm/htop/issues/882
Diffstat (limited to 'InfoScreen.c')
-rw-r--r-- | InfoScreen.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); } |