top(1): Fix Coverity warning
authorasomers <asomers@FreeBSD.org>
Tue, 19 Jun 2018 18:32:06 +0000 (18:32 +0000)
committerasomers <asomers@FreeBSD.org>
Tue, 19 Jun 2018 18:32:06 +0000 (18:32 +0000)
commita7efb23b3bd3e30b6b346db27ef962e9fa02ef48
treeecb26a4fbcd1618b626da04cc6dce2e5d7c59023
parentf37311d51bb6879ab7c73744729ca71f2518bff2
top(1): Fix Coverity warning

Don't call strerror on negative errnos

Reported by: Coverity
CID: 976708
Reviewed by: eadler
Differential Revision: https://reviews.freebsd.org/D15909
usr.bin/top/commands.c