From e6df508fbf972ae21ad50d7fb14b7a4b49a0bfb0 Mon Sep 17 00:00:00 2001 From: Arnout Engelen Date: Mon, 11 Jan 2016 17:25:22 +0100 Subject: [PATCH] Be more resilient about non-existing uid's (fixes #18) --- cui.cpp | 7 ------- 1 file changed, 7 deletions(-) diff --git a/cui.cpp b/cui.cpp index 4662496..ef76226 100644 --- a/cui.cpp +++ b/cui.cpp @@ -492,13 +492,6 @@ void do_refresh() forceExit(false, "Invalid viewMode: %d", viewMode); } uid_t uid = curproc->getVal()->getUid(); -#ifndef NDEBUG - struct passwd * pwuid = getpwuid(uid); - assert (pwuid != NULL); - // value returned by pwuid should not be freed, according to - // Petr Uzel. - //free (pwuid); -#endif assert (curproc->getVal()->pid >= 0); assert (n < nproc);