top: fix a segfault when -p switch specified invalid pid
In attempting to keep at least one task visible when scrolling vertically, a negative task index would be produced when pid monitoring was in effect and no matching pid was found. Since there were already other conditions where no task might displayed, the faulty source line has been removed. Bug-Debian: http://bugs.debian.org/668335 Signed-off-by: Jim Warner <james.warner@comcast.net>
This commit is contained in:
Reference in New Issue
Block a user