]> granicus.if.org Git - nethack/commitdiff
more unix username (#26 - validating #explore)
authorPatR <rankin@nethack.org>
Mon, 7 Oct 2019 21:44:32 +0000 (14:44 -0700)
committerPatR <rankin@nethack.org>
Mon, 7 Oct 2019 21:44:32 +0000 (14:44 -0700)
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.

sys/unix/unixmain.c

index 92cf028636892b2a1a08a2e3ddcdb89108a8e61d..7e0fcd94a41cb3912cb72118bbc4f6c8f32bbab6 100644 (file)
@@ -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;