Index: head/usr.bin/top/commands.c =================================================================== --- head/usr.bin/top/commands.c +++ head/usr.bin/top/commands.c @@ -242,7 +242,7 @@ errp = &(errs[cnt++]); if (errp->errnum != currerr) { - if (currerr != -1) + if (currerr >= 0) { if ((stringlen = str_adderr(string, stringlen, currerr)) < 2) {