diff --git a/src/who.c b/src/who.c index a1ba710..4fbfcef 100644 --- a/src/who.c +++ b/src/who.c @@ -41,8 +41,8 @@ static int _who(Prefs * prefs) printf(" %c", '?'); printf(" %-8s", u->ut_line); t = u->ut_tv.tv_sec; - if((tm = localtime(&t)) == NULL || strftime(buf, sizeof(buf), - "%b %e %H:%M", tm) == 0) + tm = localtime(&t); + if(strftime(buf, sizeof(buf), "%b %e %H:%M", tm) == 0) strcpy(buf, "n/a"); printf(" %s\n", buf); }