From: PatR Date: Mon, 7 Oct 2019 21:44:32 +0000 (-0700) Subject: more unix username (#26 - validating #explore) X-Git-Tag: v3.6.3.757eca7~42 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=659b3ce9a732fcabb6a1397a82dfdbed1ae9a570;p=nethack more unix username (#26 - validating #explore) I had this in place at one point but must have accidentally undone it before deciding that yesterday's patch was finished. Defer fetching 'pw' until it's needed. --- diff --git a/sys/unix/unixmain.c b/sys/unix/unixmain.c index 92cf02863..7e0fcd94a 100644 --- a/sys/unix/unixmain.c +++ b/sys/unix/unixmain.c @@ -651,7 +651,7 @@ boolean check_user_string(optstr) char *optstr; { - struct passwd *pw = get_unix_pw(); + struct passwd *pw; int pwlen; char *eop, *w; char *pwname = 0;